Sha256: d8607714d2716ee794ec7bec0614134faa57808ea1f4263328d71f8330336e93

Contents?: true

Size: 422 Bytes

Versions: 3

Compression:

Stored size: 422 Bytes

Contents

class AddFeaturedSortTitleAltToImageLinks < ActiveRecord::Migration
  def up
    change_table :tb_commerce_image_links do |t|
      t.string :title
      t.string :alt
      t.integer :sort
      t.boolean :is_featured, :default => false
    end
  end

  def down
    change_table :tb_commerce_image_links do |t|
      t.remove :title
      t.remove :alt
      t.remove :sort
      t.remove :is_featured
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tb_commerce-0.0.4 db/migrate/20150629011631_add_featured_sort_title_alt_to_image_links.rb
tb_commerce-0.0.3 db/migrate/20150629011631_add_featured_sort_title_alt_to_image_links.rb
tb_commerce-0.0.2 db/migrate/20150629011631_add_featured_sort_title_alt_to_image_links.rb