socialforge/db/migrate/20170306070453_create_chall...

15 lines
344 B
Ruby

class CreateChallenges < ActiveRecord::Migration
def change
create_table :challenges do |t|
t.integer :shixun_id
t.string :subject
t.text :description
t.integer :user_id
t.integer :status, :default => 0, :limit => 1
t.integer :position, :default => 1, :limit => 1
t.timestamps
end
end
end