mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 11:17:49 +01:00
14 lines
358 B
Ruby
14 lines
358 B
Ruby
class CreatePosts < ActiveRecord::Migration[6.0]
|
|
def change
|
|
create_table :posts do |t|
|
|
t.string :title, null: false
|
|
t.text :description
|
|
t.references :board, null: false, foreign_key: true
|
|
t.references :user, null: false, foreign_key: true
|
|
t.references :post_status, foreign_key: true
|
|
|
|
t.timestamps
|
|
end
|
|
end
|
|
end
|