aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorMarc Florisson2015-01-26 10:00:13 +0100
committerMarc Florisson2015-01-26 10:00:13 +0100
commit657966f57ab15234effcc56d58ff49dace885576 (patch)
treeeb03fb97d9138b9f7feb2a81e7768238410d793b /db
parentc6f7d75a1c41db2406510b9c33c86506ab190bc9 (diff)
downloadchouette-core-657966f57ab15234effcc56d58ff49dace885576.tar.bz2
add restrictions specific to Hub
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20150121144108_add_hub_restrictions_to_organisation.rb7
-rw-r--r--db/schema.rb7
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|