13 lines
259 B
Ruby
13 lines
259 B
Ruby
class CreateProfiles < ActiveRecord::Migration[6.1]
|
|
def change
|
|
create_table :profiles do |t|
|
|
t.belongs_to :user, null: false, foreign_key: true
|
|
t.string :name
|
|
t.string :summary
|
|
t.text :about
|
|
|
|
t.timestamps
|
|
end
|
|
end
|
|
end
|