Skip to content

Commit

Permalink
Attempting to avoid table force-creation
Browse files Browse the repository at this point in the history
  • Loading branch information
JackDanger committed Jan 2, 2024
1 parent 056df0c commit 5588254
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions spec/support/schema.rb
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
ActiveRecord::Schema.define(version: 1) do
create_table :ants, force: true do |t|
create_table :ants do |t|
t.column :name, :string
t.column :deleted_at, :datetime
t.references :hole
t.integer :any_hole_id
t.string :any_hole_type
end

create_table :muskrats, force: true do |t|
create_table :muskrats do |t|
t.column :name, :string
t.column :deleted_at, :datetime
t.references :hole
end

create_table :beds, force: true do |t|
create_table :beds do |t|
t.column :name, :string
end

create_table :kitties, force: true do |t|
create_table :kitties do |t|
t.column :name, :string
t.references :bed
end

create_table :beds_kitties, force: true do |t|
create_table :beds_kitties do |t|
t.references :kitty
t.references :bed
end

create_table :holes, force: true do |t|
create_table :holes do |t|
t.integer :number
t.text :options
t.text :properties
Expand All @@ -36,59 +36,59 @@
t.datetime :deleted_at
end

create_table :moles, force: true do |t|
create_table :moles do |t|
t.string :name
t.references :hole
end

create_table :locations, force: true do |t|
create_table :locations do |t|
t.string :name
t.references :hole
t.integer :parent_id
t.datetime :deleted_at
end

create_table :comments, force: true do |t|
create_table :comments do |t|
t.string :text
t.references :hole
t.datetime :deleted_at
end

create_table :difficulties, force: true do |t|
create_table :difficulties do |t|
t.string :name
t.references :hole
t.datetime :deleted_at
end

create_table :unused_models, force: true do |t|
create_table :unused_models do |t|
t.string :name
t.references :hole
t.datetime :deleted_at
end

create_table :holes_meerkats, force: true do |t|
create_table :holes_meerkats do |t|
t.references :hole
t.references :meerkat
end

create_table :meerkats, force: true do |t|
create_table :meerkats do |t|
t.string :name
end

create_table :dirts, force: true do |t|
create_table :dirts do |t|
t.string :color
t.datetime :deleted_at
end

create_table :earthworms, force: true do |t|
create_table :earthworms do |t|
t.references :dirt
end

create_table :houses, force: true do |t|
create_table :houses do |t|
t.datetime :deleted_at
end

create_table :rooms, force: true do |t|
create_table :rooms do |t|
t.references :house
t.datetime :deleted_at
end
Expand Down

0 comments on commit 5588254

Please sign in to comment.