14 lines
302 B
Ruby
14 lines
302 B
Ruby
|
class CreateWorkDetailGroups < ActiveRecord::Migration
|
||
|
def change
|
||
|
create_table :work_detail_groups do |t|
|
||
|
t.references :work
|
||
|
t.integer :min_num
|
||
|
t.integer :max_num
|
||
|
t.boolean :base_on_project
|
||
|
|
||
|
t.timestamps
|
||
|
end
|
||
|
add_index :work_detail_groups, :work_id
|
||
|
end
|
||
|
end
|