aboutsummaryrefslogtreecommitdiffstats
path: root/db
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
parent86918fe5eee925a1a1eb0b836e177b247c0700b9 (diff)
downloadcoinos-server-d7c1a161129569cdee348a5144a2d06551a32909.tar.gz
coinos-server-d7c1a161129569cdee348a5144a2d06551a32909.zip
Get rid of lingering ruby stuff
Diffstat (limited to 'db')
-rw-r--r--db/migrate.rb (renamed from db/migrate.rb.sample)4
-rw-r--r--db/migrations/001_create_database.rb20
2 files changed, 2 insertions, 22 deletions
diff --git a/db/migrate.rb.sample b/db/migrate.rb
index 4e6a9f77..90fd4a55 100644
--- a/db/migrate.rb.sample
+++ b/db/migrate.rb
@@ -5,8 +5,8 @@ ActiveRecord::Base.establish_connection(
:adapter=>'mysql2',
:hostname => 'localhost',
:username => 'root',
- :password => '',
- :database => 'bitcoin_pos',
+ :password => 'MPJzfq97',
+ :database => 'vanbtc',
:reconnect => true
)
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