mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
16 lines
427 B
Ruby
16 lines
427 B
Ruby
class CreateTimelines < ActiveRecord::Migration[6.0]
|
|
def change
|
|
create_table :timelines do |t|
|
|
t.string :name
|
|
t.references :universe, null: true, foreign_key: true
|
|
t.references :user, null: false, foreign_key: true
|
|
t.string :page_type, default: 'Timeline'
|
|
t.datetime :deleted_at
|
|
t.datetime :archived_at
|
|
t.string :privacy, default: 'private'
|
|
|
|
t.timestamps
|
|
end
|
|
end
|
|
end
|