Files
fizzy/db/migrate/20250728131423_create_conversations.rb
T
2025-08-13 15:14:12 +02:00

11 lines
260 B
Ruby

class CreateConversations < ActiveRecord::Migration[8.1]
def change
create_table :conversations do |t|
t.belongs_to :user, null: false, foreign_key: true, index: { unique: true }
t.string :state, :string
t.timestamps
end
end
end