socialforge/db/migrate/20140327071420_create_conte...

16 lines
304 B
Ruby
Raw Normal View History

2014-04-03 22:38:18 +08:00
class CreateContests < ActiveRecord::Migration
def change
create_table :contests do |t|
t.string :name
t.integer :budget
t.integer :author_id
t.date :deadline
t.string :description
t.integer :commit
t.string :password
t.timestamps
end
end
end