Skip to content

Commit

Permalink
Merge pull request #280 from uhlenbrock/rails-5-1-schema
Browse files Browse the repository at this point in the history
Update schema for Rails 5.1 support
  • Loading branch information
mceachen authored Jul 12, 2017
2 parents 3f25ede + 9150d94 commit cbf0497
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions spec/db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@
create_table "tags" do |t|
t.string "name"
t.string "title"
t.integer "parent_id"
t.references "parent"
t.integer "sort_order"
t.timestamps null: false
end

add_foreign_key(:tags, :tags, :column => 'parent_id')

create_table "tag_hierarchies", :id => false do |t|
t.integer "ancestor_id", :null => false
t.integer "descendant_id", :null => false
t.references "ancestor", :null => false
t.references "descendant", :null => false
t.integer "generations", :null => false
end

Expand Down Expand Up @@ -61,16 +61,16 @@

create_table "users" do |t|
t.string "email"
t.integer "referrer_id"
t.references "referrer"
t.integer "group_id"
t.timestamps null: false
end

add_foreign_key(:users, :users, :column => 'referrer_id')

create_table "contracts" do |t|
t.integer "user_id", :null => false
t.integer "contract_type_id"
t.references "user", :null => false
t.references "contract_type"
t.string "title"
end

Expand All @@ -79,8 +79,8 @@
end

create_table "referral_hierarchies", :id => false do |t|
t.integer "ancestor_id", :null => false
t.integer "descendant_id", :null => false
t.references "ancestor", :null => false
t.references "descendant", :null => false
t.integer "generations", :null => false
end

Expand All @@ -91,14 +91,14 @@
t.string "name"
t.string "type"
t.integer "column_whereby_ordering_is_inferred"
t.integer "mother_id"
t.references "mother"
end

add_foreign_key(:labels, :labels, :column => 'mother_id')

create_table "label_hierarchies", :id => false do |t|
t.integer "ancestor_id", :null => false
t.integer "descendant_id", :null => false
t.references "ancestor", :null => false
t.references "descendant", :null => false
t.integer "generations", :null => false
end

Expand All @@ -107,28 +107,28 @@

create_table "cuisine_types" do |t|
t.string "name"
t.integer "parent_id"
t.references "parent"
end

create_table "cuisine_type_hierarchies", :id => false do |t|
t.integer "ancestor_id", :null => false
t.integer "descendant_id", :null => false
t.references "ancestor", :null => false
t.references "descendant", :null => false
t.integer "generations", :null => false
end

create_table "namespace_types" do |t|
t.string "name"
t.integer "parent_id"
t.references "parent"
end

create_table "namespace_type_hierarchies", :id => false do |t|
t.integer "ancestor_id", :null => false
t.integer "descendant_id", :null => false
t.references "ancestor", :null => false
t.references "descendant", :null => false
t.integer "generations", :null => false
end

create_table "metal" do |t|
t.integer "parent_id"
t.references "parent"
t.string "metal_type"
t.string "value"
t.string "description"
Expand All @@ -138,8 +138,8 @@
add_foreign_key(:metal, :metal, :column => 'parent_id')

create_table "metal_hierarchies", :id => false do |t|
t.integer "ancestor_id", :null => false
t.integer "descendant_id", :null => false
t.references "ancestor", :null => false
t.references "descendant", :null => false
t.integer "generations", :null => false
end

Expand All @@ -148,15 +148,15 @@

create_table 'menu_items' do |t|
t.string 'name'
t.integer 'parent_id'
t.references 'parent'
t.timestamps null: false
end

add_foreign_key(:menu_items, :menu_items, :column => 'parent_id')

create_table 'menu_item_hierarchies', :id => false do |t|
t.integer 'ancestor_id', :null => false
t.integer 'descendant_id', :null => false
t.references 'ancestor', :null => false
t.references 'descendant', :null => false
t.integer 'generations', :null => false
end

Expand Down

0 comments on commit cbf0497

Please sign in to comment.