18 lines
455 B
Ruby
18 lines
455 B
Ruby
class CreateApplyAddDepartments < ActiveRecord::Migration
|
|
def change
|
|
create_table :apply_add_departments do |t|
|
|
t.string :name
|
|
t.references :department
|
|
t.references :school
|
|
t.text :remarks
|
|
t.references :user
|
|
t.integer :status
|
|
|
|
t.timestamps
|
|
end
|
|
add_index :apply_add_departments, :department_id
|
|
add_index :apply_add_departments, :school_id
|
|
add_index :apply_add_departments, :user_id
|
|
end
|
|
end
|