Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update schema for Rails 5.1 support #280

Merged
merged 1 commit into from
Jul 12, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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