Project

General

Profile

« Previous | Next » 

Revision 70e65017

Added by Marc Dequènes over 12 years ago

  • ID 70e65017593750754038374c7fab3b153ba60b5d

[fix] renamed 'technique' into more appropriate name 'artwork_support', and update schema and translations (Closes #4)

View differences:

db/schema.rb
78 78

  
79 79
  add_index "artwork_steps", ["filename"], :name => "image_filename", :unique => true
80 80

  
81
  create_table "artwork_supports", :force => true do |t|
82
    t.string "name",    :limit => 128, :null => false
83
    t.string "acronym", :limit => 8
84
  end
85

  
86
  add_index "artwork_supports", ["name", "acronym"], :name => "nom", :unique => true
87
  add_index "artwork_supports", ["name"], :name => "nom_2"
88

  
89
  create_table "artwork_supports_artworks", :force => true do |t|
90
    t.integer "artwork_support_id", :limit => 10, :null => false
91
    t.integer "artwork_id",         :limit => 20, :null => false
92
  end
93

  
94
  add_index "artwork_supports_artworks", ["artwork_support_id", "artwork_id"], :name => "artwork_support_id", :unique => true
95

  
81 96
  create_table "artworks", :force => true do |t|
82 97
    t.integer  "artwork_set_id",              :limit => 20
83 98
    t.string   "artwork_set_position",        :limit => 32
......
95 110
    t.datetime "updated_at"
96 111
  end
97 112

  
98
  create_table "artworks_techniques", :force => true do |t|
99
    t.integer "technique_id", :limit => 10, :null => false
100
    t.integer "artwork_id",   :limit => 20, :null => false
101
  end
102

  
103
  add_index "artworks_techniques", ["technique_id", "artwork_id"], :name => "technique_id", :unique => true
104

  
105 113
  create_table "exhibition_artwork", :force => true do |t|
106 114
    t.integer "exhibition_id", :limit => 20, :null => false
107 115
    t.integer "artwork_id",    :limit => 20, :null => false
......
123 131
  add_index "exhibitions", ["name"], :name => "nom", :unique => true
124 132
  add_index "exhibitions", ["name"], :name => "nom_2"
125 133

  
126
  create_table "techniques", :force => true do |t|
127
    t.string "name",    :limit => 128, :null => false
128
    t.string "acronym", :limit => 8
129
  end
130

  
131
  add_index "techniques", ["name", "acronym"], :name => "nom", :unique => true
132
  add_index "techniques", ["name"], :name => "nom_2"
133

  
134 134
  create_table "users", :force => true do |t|
135 135
    t.string   "login",           :limit => 64,                     :null => false
136 136
    t.string   "real_name",       :limit => 256

Also available in: Unified diff