diff options
| author | Zog | 2018-02-27 16:30:40 +0100 | 
|---|---|---|
| committer | Zog | 2018-02-27 16:30:40 +0100 | 
| commit | ff9f6fa9674a4a50da480b550611cd1ce9d84c23 (patch) | |
| tree | 9666c7d989709b43dfe56822062f5256a5521fa9 /db | |
| parent | 0a91ae5d80e476f967160e1987cc7e63beabea94 (diff) | |
| download | chouette-core-ff9f6fa9674a4a50da480b550611cd1ce9d84c23.tar.bz2 | |
refs #5878; Remove hard link between a ComplianceCheck and the associated ComplianceControl
Diffstat (limited to 'db')
| -rw-r--r-- | db/migrate/20180227151937_add_compliance_control_name_to_compliance_checks.rb | 5 | ||||
| -rw-r--r-- | db/schema.rb | 9 | 
2 files changed, 11 insertions, 3 deletions
| diff --git a/db/migrate/20180227151937_add_compliance_control_name_to_compliance_checks.rb b/db/migrate/20180227151937_add_compliance_control_name_to_compliance_checks.rb new file mode 100644 index 000000000..49ab0da11 --- /dev/null +++ b/db/migrate/20180227151937_add_compliance_control_name_to_compliance_checks.rb @@ -0,0 +1,5 @@ +class AddComplianceControlNameToComplianceChecks < ActiveRecord::Migration +  def change +    add_column :compliance_checks, :compliance_control_name, :string +  end +end diff --git a/db/schema.rb b/db/schema.rb index c709290f5..450d2ce5d 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,13 +11,14 @@  #  # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20180202170009) do +ActiveRecord::Schema.define(version: 20180227151937) do    # These are extensions that must be enabled in order to support this database    enable_extension "plpgsql"    enable_extension "hstore"    enable_extension "postgis"    enable_extension "unaccent" +  enable_extension "objectid"    create_table "access_links", id: :bigserial, force: :cascade do |t|      t.integer  "access_point_id",                        limit: 8 @@ -90,9 +91,9 @@ ActiveRecord::Schema.define(version: 20180202170009) do      t.integer   "organisation_id", limit: 8      t.datetime  "created_at"      t.datetime  "updated_at" -    t.integer   "workgroup_id",    limit: 8      t.integer   "int_day_types"      t.date      "excluded_dates",                            array: true +    t.integer   "workgroup_id",    limit: 8    end    add_index "calendars", ["organisation_id"], name: "index_calendars_on_organisation_id", using: :btree @@ -221,6 +222,7 @@ ActiveRecord::Schema.define(version: 20180202170009) do      t.datetime "created_at",                          null: false      t.datetime "updated_at",                          null: false      t.string   "origin_code" +    t.string   "compliance_control_name"    end    add_index "compliance_checks", ["compliance_check_block_id"], name: "index_compliance_checks_on_compliance_check_block_id", using: :btree @@ -421,9 +423,9 @@ ActiveRecord::Schema.define(version: 20180202170009) do      t.string   "type"      t.integer  "parent_id",             limit: 8      t.string   "parent_type" +    t.datetime "notified_parent_at"      t.integer  "current_step",                    default: 0      t.integer  "total_steps",                     default: 0 -    t.datetime "notified_parent_at"      t.string   "creator"    end @@ -765,6 +767,7 @@ ActiveRecord::Schema.define(version: 20180202170009) do      t.datetime "created_at"      t.datetime "updated_at"      t.string   "objectid_format" +    t.string   "registration_number_format"    end    create_table "stop_areas", id: :bigserial, force: :cascade do |t| | 
