Project

General

Profile

« Previous | Next » 

Revision aaa55822

Added by Marc Dequènes over 15 years ago

  • ID aaa55822b2685cbeb2456458ce27673ee89083b6

[fix] db schema sync (multiple materials and no id field for simple HABTM (or fetching remote object ids would fail))

View differences:

db/schema.rb
add_index "artwork_materials", ["name"], :name => "nom", :unique => true
add_index "artwork_materials", ["name"], :name => "nom_2"
create_table "artwork_materials_artworks", :id => false, :force => true do |t|
t.integer "artwork_id", :limit => 10, :null => false
t.integer "artwork_material_id", :limit => 10, :null => false
end
add_index "artwork_materials_artworks", ["artwork_material_id", "artwork_id"], :name => "artwork_material_id", :unique => true
create_table "artwork_placement_reasons", :force => true do |t|
t.string "name", :limit => 64, :null => false
end
......
add_index "artwork_supports", ["name", "acronym"], :name => "nom", :unique => true
add_index "artwork_supports", ["name"], :name => "nom_2"
create_table "artwork_supports_artworks", :force => true do |t|
create_table "artwork_supports_artworks", :id => false, :force => true do |t|
t.integer "artwork_support_id", :limit => 10, :null => false
t.integer "artwork_id", :limit => 20, :null => false
end
......
t.integer "artwork_group_id", :limit => 20
t.string "artwork_group_position", :limit => 32
t.string "title", :limit => 256, :null => false
t.integer "artwork_material_id", :limit => 10, :null => false
t.integer "artwork_size_id", :limit => 10, :null => false
t.integer "artwork_condition_id", :limit => 10, :null => false
t.integer "artwork_placement_reason_id", :limit => 10

Also available in: Unified diff