Files
fizzy/db/migrate/20240916191616_create_projects.rb
T
Kevin McConnell 13f5952336 Fix migrations that can no longer be applied
The migrations could no longer be applied on an empty database, mainly
because they referred to models that no longer existed. Replaced the
model references with direct table access that will always be correct at
the time the migration is applied.

Also removed conflicting indexes in table renames.
2024-10-02 13:50:46 +01:00

12 lines
253 B
Ruby

class CreateProjects < ActiveRecord::Migration[8.0]
def change
create_table :projects do |t|
t.references :account, null: false
t.references :creator, null: false
t.string :name, null: false
t.timestamps
end
end
end