From d7c1a161129569cdee348a5144a2d06551a32909 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 21 Nov 2012 09:23:05 +0400 Subject: Get rid of lingering ruby stuff --- db/migrate.rb | 14 ++++++++++++++ db/migrate.rb.sample | 14 -------------- db/migrations/001_create_database.rb | 20 -------------------- 3 files changed, 14 insertions(+), 34 deletions(-) create mode 100644 db/migrate.rb delete mode 100644 db/migrate.rb.sample delete mode 100644 db/migrations/001_create_database.rb (limited to 'db') 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/" diff --git a/db/migrate.rb.sample b/db/migrate.rb.sample deleted file mode 100644 index 4e6a9f77..00000000 --- a/db/migrate.rb.sample +++ /dev/null @@ -1,14 +0,0 @@ -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/" diff --git a/db/migrations/001_create_database.rb b/db/migrations/001_create_database.rb deleted file mode 100644 index 2a9184e3..00000000 --- a/db/migrations/001_create_database.rb +++ /dev/null @@ -1,20 +0,0 @@ -class CreateDatabase < ActiveRecord::Migration - def change - create_table :users do |t| - t.string :login - t.string :password - t.string :name - t.string :address - t.decimal :credit, :precision => 10, :scale => 2 - t.string :logo - t.decimal :commission, :precision => 10, :scale => 2 - end - - create_table :transactions do |t| - t.string :address - t.decimal :amount, :precision => 10, :scale => 2 - t.decimal :exchange, :precision => 10, :scale => 2 - t.timestamps - end - end -end -- cgit v1.2.3