aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorXinhui2016-10-17 13:22:51 +0200
committerXinhui2016-10-17 13:22:51 +0200
commitf282672d581a826411271dc37fd173bf49f30f76 (patch)
tree03b965e3736756c686e54dbd7ae4034fd9718503 /db
parent972c635d3ac481989d3a7da8326d192cf34116ee (diff)
downloadchouette-core-f282672d581a826411271dc37fd173bf49f30f76.tar.bz2
Store organisation functional_scope
Refs #1785
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20161017091304_add_sso_attributes_to_organisations.rb5
-rw-r--r--db/schema.rb5
2 files changed, 8 insertions, 2 deletions
diff --git a/db/migrate/20161017091304_add_sso_attributes_to_organisations.rb b/db/migrate/20161017091304_add_sso_attributes_to_organisations.rb
new file mode 100644
index 000000000..608e78ef6
--- /dev/null
+++ b/db/migrate/20161017091304_add_sso_attributes_to_organisations.rb
@@ -0,0 +1,5 @@
+class AddSsoAttributesToOrganisations < ActiveRecord::Migration
+ def change
+ add_column :organisations, :sso_attributes, :hstore
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index e8a0c8c7a..9b2c3f1b2 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: 20161010135256) do
+ActiveRecord::Schema.define(version: 20161017091304) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -356,9 +356,10 @@ ActiveRecord::Schema.define(version: 20161010135256) do
t.string "name"
t.datetime "created_at"
t.datetime "updated_at"
- t.string "data_format", default: "neptune"
+ t.string "data_format", default: "neptune"
t.string "code"
t.datetime "synced_at"
+ t.hstore "sso_attributes"
end
create_table "pt_links", force: true do |t|