diff options
| author | Zog | 2018-04-30 14:40:04 +0200 | 
|---|---|---|
| committer | Zog | 2018-05-07 15:03:07 +0200 | 
| commit | d041b6b07cc2b9c2b48e6da929c8d7f1e0ec8bca (patch) | |
| tree | 478d23c89c857c38b009604ef4fcbf1193eb8f2f /db | |
| parent | af49fd1021ee6b22fd8ca6c6592c5f7d64c23aa0 (diff) | |
| download | chouette-core-d041b6b07cc2b9c2b48e6da929c8d7f1e0ec8bca.tar.bz2 | |
Add import_compliance_control_sets to Workgroups
And rename resource methods for better consistency
Diffstat (limited to 'db')
| -rw-r--r-- | db/migrate/20180430122530_add_import_compliance_control_sets_to_workgroups.rb | 5 | ||||
| -rw-r--r-- | db/schema.rb | 15 | 
2 files changed, 13 insertions, 7 deletions
| diff --git a/db/migrate/20180430122530_add_import_compliance_control_sets_to_workgroups.rb b/db/migrate/20180430122530_add_import_compliance_control_sets_to_workgroups.rb new file mode 100644 index 000000000..2fc7c8e3f --- /dev/null +++ b/db/migrate/20180430122530_add_import_compliance_control_sets_to_workgroups.rb @@ -0,0 +1,5 @@ +class AddImportComplianceControlSetsToWorkgroups < ActiveRecord::Migration +  def change +    add_column :workgroups, :import_compliance_control_set_ids, :integer, array: true, default: [] +  end +end diff --git a/db/schema.rb b/db/schema.rb index b97af8f5c..4a049d7ae 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: 20180425160730) do +ActiveRecord::Schema.define(version: 20180430122530) do    # These are extensions that must be enabled in order to support this database    enable_extension "plpgsql" @@ -1088,12 +1088,13 @@ ActiveRecord::Schema.define(version: 20180425160730) do    create_table "workgroups", id: :bigserial, force: :cascade do |t|      t.string   "name" -    t.integer  "line_referential_id",      limit: 8 -    t.integer  "stop_area_referential_id", limit: 8 -    t.datetime "created_at",                                      null: false -    t.datetime "updated_at",                                      null: false -    t.string   "import_types",                       default: [],              array: true -    t.string   "export_types",                       default: [],              array: true +    t.integer  "line_referential_id",               limit: 8 +    t.integer  "stop_area_referential_id",          limit: 8 +    t.datetime "created_at",                                               null: false +    t.datetime "updated_at",                                               null: false +    t.string   "import_types",                                default: [],              array: true +    t.string   "export_types",                                default: [],              array: true +    t.integer  "import_compliance_control_set_ids",           default: [],              array: true    end    add_foreign_key "access_links", "access_points", name: "aclk_acpt_fkey" | 
