mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
15 lines
346 B
Ruby
15 lines
346 B
Ruby
class CreateSchools < ActiveRecord::Migration[5.2]
|
|
def change
|
|
create_table :schools do |t|
|
|
t.string :name
|
|
t.references :user, foreign_key: true
|
|
t.references :universe, foreign_key: true
|
|
t.datetime :deleted_at
|
|
t.string :privacy
|
|
t.string :page_type, default: 'School'
|
|
|
|
t.timestamps
|
|
end
|
|
end
|
|
end
|