OSDN Git Service

databaseのパスワード設定
authorS.Isogai <dev@moving-castle-on-the-web.net>
Sat, 16 Apr 2011 14:38:11 +0000 (23:38 +0900)
committerS.Isogai <dev@moving-castle-on-the-web.net>
Sat, 16 Apr 2011 14:44:41 +0000 (23:44 +0900)
rake db:create と rake db:migrate実施

config/database.yml
db/schema.rb [new file with mode: 0644]

index e2a73ca..8dc46f5 100644 (file)
@@ -12,7 +12,7 @@ development:
   database: go_on_kiroku_tyo_development
   pool: 5
   username: root
-  password:
+  password: mysql
   socket: /var/run/mysqld/mysqld.sock
 
 # Warning: The database defined as "test" will be erased and
@@ -25,7 +25,7 @@ test:
   database: go_on_kiroku_tyo_test
   pool: 5
   username: root
-  password:
+  password: mysql
   socket: /var/run/mysqld/mysqld.sock
 
 production:
@@ -35,5 +35,5 @@ production:
   database: go_on_kiroku_tyo_production
   pool: 5
   username: root
-  password:
+  password: mysql
   socket: /var/run/mysqld/mysqld.sock
diff --git a/db/schema.rb b/db/schema.rb
new file mode 100644 (file)
index 0000000..671c0da
--- /dev/null
@@ -0,0 +1,15 @@
+# This file is auto-generated from the current state of the database. Instead
+# of editing this file, please use the migrations feature of Active Record to
+# incrementally modify your database, and then regenerate this schema definition.
+#
+# Note that this schema.rb definition is the authoritative source for your
+# database schema. If you need to create the application database on another
+# system, you should be using db:schema:load, not running all the migrations
+# from scratch. The latter is a flawed and unsustainable approach (the more migrations
+# you'll amass, the slower it'll run and the greater likelihood for issues).
+#
+# It's strongly recommended to check this file into your version control system.
+
+ActiveRecord::Schema.define(:version => 0) do
+
+end