Sha256: 1bd4c1b49e5a8f7b979d8b26a0af26473f64dd2b1d2d4466d805dc7bdf80faae
Contents?: true
Size: 287 Bytes
Versions: 1
Compression:
Stored size: 287 Bytes
Contents
class CreateCars < ActiveRecord::Migration def self.up create_table :cars do |t| t.string :name t.references :color, :legacy_color t.references :feature, :class_name => 'Color', :polymorphic => true end end def self.down drop_table :cars end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
enumerate_by-0.4.4 | test/app_root/db/migrate/002_create_cars.rb |