diff options
| author | Marc Florisson | 2015-01-26 10:00:13 +0100 |
|---|---|---|
| committer | Marc Florisson | 2015-01-26 10:00:13 +0100 |
| commit | 657966f57ab15234effcc56d58ff49dace885576 (patch) | |
| tree | eb03fb97d9138b9f7feb2a81e7768238410d793b /db | |
| parent | c6f7d75a1c41db2406510b9c33c86506ab190bc9 (diff) | |
| download | chouette-core-657966f57ab15234effcc56d58ff49dace885576.tar.bz2 | |
add restrictions specific to Hub
Diffstat (limited to 'db')
| -rw-r--r-- | db/migrate/20150121144108_add_hub_restrictions_to_organisation.rb | 7 | ||||
| -rw-r--r-- | db/schema.rb | 7 |
2 files changed, 11 insertions, 3 deletions
diff --git a/db/migrate/20150121144108_add_hub_restrictions_to_organisation.rb b/db/migrate/20150121144108_add_hub_restrictions_to_organisation.rb new file mode 100644 index 000000000..7417105e9 --- /dev/null +++ b/db/migrate/20150121144108_add_hub_restrictions_to_organisation.rb @@ -0,0 +1,7 @@ +class AddHubRestrictionsToOrganisation < ActiveRecord::Migration + def change + change_table :organisations do |t| + t.boolean :hub_restrictions + end + end +end diff --git a/db/schema.rb b/db/schema.rb index 40f04d44f..fdcc40582 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,7 @@ # # It's strongly recommended to check this file into your version control system. -ActiveRecord::Schema.define(:version => 20150120183020) do +ActiveRecord::Schema.define(:version => 20150121144108) do create_table "access_links", :force => true do |t| t.integer "access_point_id", :limit => 8 @@ -326,8 +326,9 @@ ActiveRecord::Schema.define(:version => 20150120183020) do create_table "organisations", :force => true do |t| t.string "name" - t.datetime "created_at", :null => false - t.datetime "updated_at", :null => false + t.datetime "created_at", :null => false + t.datetime "updated_at", :null => false + t.boolean "hub_restrictions" end create_table "pt_links", :force => true do |t| |
