aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
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