aboutsummaryrefslogtreecommitdiffstats
path: root/db/migrate.rb
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2012-11-21 09:23:05 +0400
committerAdam Soltys <[email protected]>2012-11-21 10:48:45 +0400
commitd7c1a161129569cdee348a5144a2d06551a32909 (patch)
treecaac5b31e1e1dc50324c97271935ba714961d445 /db/migrate.rb
parent86918fe5eee925a1a1eb0b836e177b247c0700b9 (diff)
downloadcoinos-server-d7c1a161129569cdee348a5144a2d06551a32909.tar.gz
coinos-server-d7c1a161129569cdee348a5144a2d06551a32909.zip
Get rid of lingering ruby stuff
Diffstat (limited to 'db/migrate.rb')
-rw-r--r--db/migrate.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/db/migrate.rb b/db/migrate.rb
new file mode 100644
index 00000000..90fd4a55
--- /dev/null
+++ b/db/migrate.rb
@@ -0,0 +1,14 @@
+require 'rubygems'
+require 'active_record'
+
+ActiveRecord::Base.establish_connection(
+ :adapter=>'mysql2',
+ :hostname => 'localhost',
+ :username => 'root',
+ :password => 'MPJzfq97',
+ :database => 'vanbtc',
+ :reconnect => true
+)
+
+ActiveRecord::Migration.verbose = true
+ActiveRecord::Migrator.migrate "migrations/"