13f5952336
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.
12 lines
253 B
Ruby
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
|