basic framework for items

This commit is contained in:
Emi Matchu 2010-05-14 18:41:40 -04:00
parent 84a681521a
commit fb73d23db8
2 changed files with 17 additions and 0 deletions

3
app/models/item.rb Normal file
View file

@ -0,0 +1,3 @@
class Item
# Not defining validations, since this app is currently read-only
end

View 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