Add unique constraint to zone origin

#475
This commit is contained in:
Artur Beljajev 2017-04-24 18:20:46 +03:00
parent 91fab05bfb
commit b9d4cc0c5c
3 changed files with 26 additions and 1 deletions

View file

@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20170422142116) do
ActiveRecord::Schema.define(version: 20170424115801) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@ -1143,4 +1143,6 @@ ActiveRecord::Schema.define(version: 20170422142116) do
t.text "a4_records"
end
add_index "zones", ["origin"], name: "unique_zone_origin", unique: true, using: :btree
end