Permalink
Browse files

replace with sqlite3

  • Loading branch information...
xdite committed Dec 24, 2013
1 parent 0f3504a commit f5c159839b3060d7b5c9b699f9ab417dae2f6953
@@ -91,15 +91,7 @@ def remove_routes_comment_lines
end
def use_mysql_config_template
- template 'mysql_database.yml.erb', 'config/database.yml',:force => true
template 'mysql_database.yml.erb', 'config/database.yml.example', :force => true
-
- db_user_name = ask("What is your local database user name? [root]")
- db_password = ask("What is your local database password? ['']")
-
- replace_in_file 'config/database.yml', 'username: root', "username: #{db_user_name}" if db_user_name.present?
- replace_in_file 'config/database.yml', 'password: ""', "password: '#{db_password}'" if db_password.present?
-
end
@@ -5,8 +5,6 @@
module Bootstrappers
class AppGenerator < Rails::Generators::AppGenerator
- class_option :database, :type => :string, :aliases => '-d', :default => 'mysql',
- :desc => "Preconfigure for selected database (options: #{DATABASES.join('/')})"
def finish_template
invoke :bootstrappers_customization
@@ -88,10 +86,7 @@ def setup_capistrano
def setup_database
say 'Setting up database'
- if 'mysql' == options[:database]
- build :use_mysql_config_template
- end
-
+ build :use_mysql_config_template
build :create_database
end
@@ -1,3 +1,3 @@
module Bootstrappers
- VERSION = "4.2.0.8"
+ VERSION = "4.2.0.9"
end
@@ -4,7 +4,7 @@ development: &default
database: <%= app_name %>_development
host: localhost
username: root
- password: ""
+ password: "123456"
test: &TEST
<<: *default

0 comments on commit f5c1598

Please sign in to comment.