Project

General

Profile

« Previous | Next » 

Revision aaa55822

Added by Marc Dequènes over 12 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
36 36
  add_index "artwork_materials", ["name"], :name => "nom", :unique => true
37 37
  add_index "artwork_materials", ["name"], :name => "nom_2"
38 38

  
39
  create_table "artwork_materials_artworks", :id => false, :force => true do |t|
40
    t.integer "artwork_id",          :limit => 10, :null => false
41
    t.integer "artwork_material_id", :limit => 10, :null => false
42
  end
43

  
44
  add_index "artwork_materials_artworks", ["artwork_material_id", "artwork_id"], :name => "artwork_material_id", :unique => true
45

  
39 46
  create_table "artwork_placement_reasons", :force => true do |t|
40 47
    t.string "name", :limit => 64, :null => false
41 48
  end
......
86 93
  add_index "artwork_supports", ["name", "acronym"], :name => "nom", :unique => true
87 94
  add_index "artwork_supports", ["name"], :name => "nom_2"
88 95

  
89
  create_table "artwork_supports_artworks", :force => true do |t|
96
  create_table "artwork_supports_artworks", :id => false, :force => true do |t|
90 97
    t.integer "artwork_support_id", :limit => 10, :null => false
91 98
    t.integer "artwork_id",         :limit => 20, :null => false
92 99
  end
......
99 106
    t.integer  "artwork_group_id",            :limit => 20
100 107
    t.string   "artwork_group_position",      :limit => 32
101 108
    t.string   "title",                       :limit => 256, :null => false
102
    t.integer  "artwork_material_id",         :limit => 10,  :null => false
103 109
    t.integer  "artwork_size_id",             :limit => 10,  :null => false
104 110
    t.integer  "artwork_condition_id",        :limit => 10,  :null => false
105 111
    t.integer  "artwork_placement_reason_id", :limit => 10

Also available in: Unified diff