diff options
| author | cedricnjanga | 2017-12-14 18:47:44 +0100 | 
|---|---|---|
| committer | Luc Donnet | 2017-12-21 13:54:07 +0100 | 
| commit | f2d00fad59d97130babc95f37d495245f3d53f80 (patch) | |
| tree | 97b100f22b716ed00fd456b8834d80db129a9981 /db | |
| parent | 7f9a61d5823bd6611351fcc6dce79a2159976b34 (diff) | |
| download | chouette-core-f2d00fad59d97130babc95f37d495245f3d53f80.tar.bz2 | |
Refs #5301 First draft for Business Calendars
Diffstat (limited to 'db')
| -rw-r--r-- | db/migrate/20171214131755_create_business_calendars.rb | 13 | ||||
| -rw-r--r-- | db/schema.rb | 12 | 
2 files changed, 24 insertions, 1 deletions
diff --git a/db/migrate/20171214131755_create_business_calendars.rb b/db/migrate/20171214131755_create_business_calendars.rb new file mode 100644 index 000000000..5bb3db9d3 --- /dev/null +++ b/db/migrate/20171214131755_create_business_calendars.rb @@ -0,0 +1,13 @@ +class CreateBusinessCalendars < ActiveRecord::Migration +  def change +    create_table :business_calendars do |t| +      t.string :name +      t.string :short_name +      t.string :color +      t.date :dates +      t.daterange :date_ranges + +      t.timestamps null: false +    end +  end +end diff --git a/db/schema.rb b/db/schema.rb index f2642f8fc..a51a3bb42 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -81,6 +81,16 @@ ActiveRecord::Schema.define(version: 20171214130636) do    add_index "api_keys", ["organisation_id"], name: "index_api_keys_on_organisation_id", using: :btree +  create_table "business_calendars", id: :bigserial, force: :cascade do |t| +    t.string    "name" +    t.string    "short_name" +    t.string    "color" +    t.date      "dates" +    t.daterange "date_ranges" +    t.datetime  "created_at",  null: false +    t.datetime  "updated_at",  null: false +  end +    create_table "calendars", id: :bigserial, force: :cascade do |t|      t.string    "name"      t.string    "short_name" @@ -403,9 +413,9 @@ ActiveRecord::Schema.define(version: 20171214130636) 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  | 
