Browse Source

Mise à jour à partir de la bd

recurrent
echarp 8 years ago
parent
commit
047a81b954
  1. 2
      db/migrate/20131114103118_devise_create_admin_users.rb
  2. 8
      db/schema.rb

2
db/migrate/20131114103118_devise_create_admin_users.rb

@ -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

8
db/schema.rb

@ -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

Loading…
Cancel
Save