22 lines
542 B
Ruby
22 lines
542 B
Ruby
|
class CreateHomeworkBanks < ActiveRecord::Migration
|
||
|
def change
|
||
|
create_table :homework_banks do |t|
|
||
|
t.references :user
|
||
|
t.string :name
|
||
|
t.text :description
|
||
|
t.integer :homework_type
|
||
|
t.integer :quotes, :default => 0
|
||
|
t.boolean :is_public
|
||
|
t.string :language
|
||
|
t.text :standard_code, :limit => 4294967295
|
||
|
t.integer :min_num
|
||
|
t.integer :max_num
|
||
|
t.boolean :base_on_project
|
||
|
t.string :applicable_syllabus
|
||
|
t.integer :homework_common_id
|
||
|
|
||
|
t.timestamps
|
||
|
end
|
||
|
end
|
||
|
end
|