forked from OpenNeo/impress
basic framework for items
This commit is contained in:
parent
84a681521a
commit
fb73d23db8
2 changed files with 17 additions and 0 deletions
3
app/models/item.rb
Normal file
3
app/models/item.rb
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
class Item
|
||||||
|
# Not defining validations, since this app is currently read-only
|
||||||
|
end
|
14
db/migrate/20100514224031_create_items.rb
Normal file
14
db/migrate/20100514224031_create_items.rb
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
class CreateItems < ActiveRecord::Migration
|
||||||
|
def self.up
|
||||||
|
create_table :items do |t|
|
||||||
|
t.string :name
|
||||||
|
t.string :species_support_ids
|
||||||
|
|
||||||
|
t.timestamps
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
def self.down
|
||||||
|
drop_table :items
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in a new issue