impress/db/migrate/20100514224031_create_objects.rb

15 lines
235 B
Ruby
Raw Normal View History

class CreateObjects < ActiveRecord::Migration
2010-05-14 15:41:40 -07:00
def self.up
create_table :objects do |t|
2010-05-14 15:41:40 -07:00
t.string :name
t.string :species_support_ids
t.timestamps
end
end
def self.down
drop_table :objects
2010-05-14 15:41:40 -07:00
end
end