From 94e17c0d9fb972cfa0bac3267a1761520eee6fd5 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 23 Oct 2012 14:17:29 -0700 Subject: Create database using activerecord migration --- db/migrate.rb.sample | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 db/migrate.rb.sample (limited to 'db/migrate.rb.sample') diff --git a/db/migrate.rb.sample b/db/migrate.rb.sample new file mode 100644 index 00000000..4e6a9f77 --- /dev/null +++ b/db/migrate.rb.sample @@ -0,0 +1,14 @@ +require 'rubygems' +require 'active_record' + +ActiveRecord::Base.establish_connection( + :adapter=>'mysql2', + :hostname => 'localhost', + :username => 'root', + :password => '', + :database => 'bitcoin_pos', + :reconnect => true +) + +ActiveRecord::Migration.verbose = true +ActiveRecord::Migrator.migrate "migrations/" -- cgit v1.2.3