mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-05 07:03:51 +08:00
14 lines
359 B
Ruby
14 lines
359 B
Ruby
|
class CreateProjects < ActiveRecord::Migration
|
||
|
def change
|
||
|
create_table :projects do |t|
|
||
|
t.string :name, null: false
|
||
|
t.column :visibility, :integer, null: false, default: 0
|
||
|
t.datetime :due_date
|
||
|
t.integer :organization_id, null: false
|
||
|
|
||
|
t.timestamps null: false
|
||
|
end
|
||
|
add_foreign_key :projects, :organizations
|
||
|
end
|
||
|
end
|