aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorXinhui2016-08-03 16:21:22 +0200
committerXinhui2016-08-03 16:21:22 +0200
commit3dc76115b605dd69c3bc0e24a48860ab874228b8 (patch)
tree98eee9253b35bd39493448c815c5e0e324e3f225 /db
parentfa7154a9fe684f8b42bfc4afcacaa56bc1fe6d45 (diff)
downloadchouette-core-3dc76115b605dd69c3bc0e24a48860ab874228b8.tar.bz2
Add column Code to Organisation
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20160803140910_add_code_to_organisations.rb5
-rw-r--r--db/schema.rb5
2 files changed, 8 insertions, 2 deletions
diff --git a/db/migrate/20160803140910_add_code_to_organisations.rb b/db/migrate/20160803140910_add_code_to_organisations.rb
new file mode 100644
index 000000000..ba5d38213
--- /dev/null
+++ b/db/migrate/20160803140910_add_code_to_organisations.rb
@@ -0,0 +1,5 @@
+class AddCodeToOrganisations < ActiveRecord::Migration
+ def change
+ add_column :organisations, :code, :string
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index 354b446f7..85b9abb4f 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: 20160727132836) do
+ActiveRecord::Schema.define(version: 20160803140910) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -353,6 +353,7 @@ ActiveRecord::Schema.define(version: 20160727132836) do
t.datetime "created_at"
t.datetime "updated_at"
t.string "data_format", default: "neptune"
+ t.string "code"
end
create_table "pt_links", force: true do |t|
@@ -597,7 +598,7 @@ ActiveRecord::Schema.define(version: 20160727132836) do
t.integer "invited_by_id"
t.string "invited_by_type"
t.datetime "invitation_created_at"
- t.string "username"
+ t.string "username", null: false
end
add_index "users", ["email"], :name => "index_users_on_email", :unique => true