10 lines
224 B
Ruby
10 lines
224 B
Ruby
|
class CreatePosts < ActiveRecord::Migration[6.1]
|
||
|
def change
|
||
|
create_table :posts do |t|
|
||
|
t.timestamps
|
||
|
t.references :profile, null: false, foreign_key: true
|
||
|
t.string :text, null: false
|
||
|
end
|
||
|
end
|
||
|
end
|