Mise à jour à partir de la bd

This commit is contained in:
echarp 2014-06-21 12:33:10 +02:00
parent 0828d1ca65
commit 047a81b954
2 changed files with 5 additions and 5 deletions

View File

@ -2,7 +2,7 @@ class DeviseCreateAdminUsers < ActiveRecord::Migration
def migrate(direction)
super
# Create a default user
AdminUser.create!(:email => 'admin@example.com', :password => 'password', :password_confirmation => 'password') if direction == :up
AdminUser.create!(email: 'admin@example.com', password: 'password', password_confirmation: 'password') if direction == :up
end
def change

View File

@ -47,13 +47,13 @@ ActiveRecord::Schema.define(version: 20140403204748) do
add_index "admin_users", ["reset_password_token"], name: "index_admin_users_on_reset_password_token", unique: true, using: :btree
create_table "cities", force: true do |t|
t.string "name", default: "", null: false
t.string "majname", default: "", null: false
t.string "name", default: "", null: false
t.string "majname", default: "", null: false
t.integer "postalcode"
t.integer "inseecode"
t.integer "regioncode"
t.float "latitude"
t.float "longitude"
t.float "latitude", limit: 24
t.float "longitude", limit: 24
end
add_index "cities", ["name"], name: "cities_name", using: :btree