diff options
| author | jpl | 2017-04-10 18:34:15 +0200 |
|---|---|---|
| committer | jpl | 2017-04-10 18:34:22 +0200 |
| commit | f62876f66e1ded5347ac93954845357a58be6aa9 (patch) | |
| tree | 5b0832aacdc9613ae1a04662be4d47234bbbe81f /db | |
| parent | 46de3ff815baeb1d44e751b25df6594f26b77be4 (diff) | |
| download | chouette-core-f62876f66e1ded5347ac93954845357a58be6aa9.tar.bz2 | |
Refs #3092 #2909: adding color attribute, adding colorSelector component
Diffstat (limited to 'db')
| -rw-r--r-- | db/migrate/20170410134931_add_color_to_timetables.rb | 5 | ||||
| -rw-r--r-- | db/schema.rb | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/db/migrate/20170410134931_add_color_to_timetables.rb b/db/migrate/20170410134931_add_color_to_timetables.rb new file mode 100644 index 000000000..c297bc537 --- /dev/null +++ b/db/migrate/20170410134931_add_color_to_timetables.rb @@ -0,0 +1,5 @@ +class AddColorToTimetables < ActiveRecord::Migration + def change + add_column :time_tables, :color, :string + end +end diff --git a/db/schema.rb b/db/schema.rb index 24bcf199c..d67179e33 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20170404122930) do +ActiveRecord::Schema.define(version: 20170410134931) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -722,6 +722,7 @@ ActiveRecord::Schema.define(version: 20170404122930) do t.integer "calendar_id", limit: 8 t.datetime "created_at" t.datetime "updated_at" + t.string "color" end add_index "time_tables", ["calendar_id"], :name => "index_time_tables_on_calendar_id" |
