You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
educoder/db/migrate/20190403022053_create_gtask...

20 lines
530 B

6 years ago
class CreateGtaskBanks < ActiveRecord::Migration[5.2]
def change
create_table :gtask_banks do |t|
t.references :user
t.string :name
t.text :description
t.integer :task_type
t.integer :min_num, default: 0
t.integer :max_num, default: 0
t.integer :base_on_project, default: false
t.boolean :is_public, default: false
t.integer :quotes, default: 0
t.references :graduation_task
t.references :course_list
t.timestamps
end
end
end