20170425202925_add_oembed_to_preview_cards.rb 654 B

12345678910111213141516
  1. # frozen_string_literal: true
  2. class AddOEmbedToPreviewCards < ActiveRecord::Migration[5.0]
  3. def change
  4. change_table(:preview_cards, bulk: true) do |t|
  5. t.column :type, :integer, default: 0, null: false
  6. t.column :html, :text, null: false, default: ''
  7. t.column :author_name, :string, null: false, default: ''
  8. t.column :author_url, :string, null: false, default: ''
  9. t.column :provider_name, :string, null: false, default: ''
  10. t.column :provider_url, :string, null: false, default: ''
  11. t.column :width, :integer, default: 0, null: false
  12. t.column :height, :integer, default: 0, null: false
  13. end
  14. end
  15. end