Sha256: ed6cec2cb5e95ef4a9859d57f2a6405f88903daa9109982d01c3ead07106991a

Contents?: true

Size: 272 Bytes

Versions: 19

Compression:

Stored size: 272 Bytes

Contents

class CreateNewVariants < ActiveRecord::Migration
  def up
    create_table :variants, :force => true do |t|
      t.integer :item_id, :null => false
      t.string :item_type, :null => false
      t.timestamps
    end
  end

  def down
    drop_table :variants
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
piggybak_variants-0.1.3 db/migrate/20121015144538_create_new_variants.rb
piggybak_variants-0.1.2 db/migrate/20121015144538_create_new_variants.rb
piggybak_variants-0.1.1 db/migrate/20121015144538_create_new_variants.rb
piggybak_variants-0.1.0 db/migrate/20121015144538_create_new_variants.rb
piggybak_variants-0.0.17 db/migrate/20121015144538_create_new_variants.rb
piggybak_variants-0.0.15 db/migrate/20121015144538_create_new_variants.rb
piggybak_variants-0.0.14 db/migrate/20121015144538_create_new_variants.rb
piggybak_variants-0.0.13 db/migrate/20121015144538_create_new_variants.rb
piggybak_variants-0.0.12 db/migrate/20121015144538_create_new_variants.rb
piggybak_variants-0.0.11 db/migrate/20121015144538_create_new_variants.rb
piggybak_variants-0.0.10 db/migrate/20121015144538_create_new_variants.rb
piggybak_variants-0.0.9 db/migrate/20121015144538_create_new_variants.rb
piggybak_variants-0.0.8 db/migrate/20121015144538_create_new_variants.rb
piggybak_variants-0.0.7 db/migrate/20121015144538_create_new_variants.rb
piggybak_variants-0.0.6 db/migrate/20121015144538_create_new_variants.rb
piggybak_variants-0.0.5 db/migrate/20121015144538_create_new_variants.rb
piggybak_variants-0.0.4 db/migrate/20121015144538_create_new_variants.rb
piggybak_variants-0.0.2 db/migrate/20121015144538_create_new_variants.rb
piggybak_variants-0.0.1 db/migrate/20121015144538_create_new_variants.rb