adds migration to create unaccent extension
This commit is contained in:
9
db/migrate/20150910185110_add_unaccent_extension.rb
Normal file
9
db/migrate/20150910185110_add_unaccent_extension.rb
Normal file
@@ -0,0 +1,9 @@
|
||||
class AddUnaccentExtension < ActiveRecord::Migration
|
||||
def up
|
||||
execute "CREATE EXTENSION IF NOT EXISTS unaccent"
|
||||
end
|
||||
|
||||
def down
|
||||
execute "DROP EXTENSION unaccent"
|
||||
end
|
||||
end
|
||||
@@ -11,10 +11,11 @@
|
||||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 20150910152734) do
|
||||
ActiveRecord::Schema.define(version: 20150910185110) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
enable_extension "unaccent"
|
||||
|
||||
create_table "addresses", force: :cascade do |t|
|
||||
t.integer "user_id"
|
||||
@@ -258,6 +259,7 @@ ActiveRecord::Schema.define(version: 20150910152734) do
|
||||
t.datetime "letter_requested_at"
|
||||
t.datetime "confirmed_hide_at"
|
||||
t.string "letter_verification_code"
|
||||
t.integer "letter_verification_tries", default: 0
|
||||
end
|
||||
|
||||
add_index "users", ["confirmation_token"], name: "index_users_on_confirmation_token", unique: true, using: :btree
|
||||
|
||||
Reference in New Issue
Block a user