diff options
| -rw-r--r-- | .gitignore | 3 | ||||
| -rw-r--r-- | Gemfile | 2 | ||||
| -rw-r--r-- | db/migrate.rb (renamed from db/migrate.rb.sample) | 4 | ||||
| -rw-r--r-- | db/migrations/001_create_database.rb | 20 |
4 files changed, 2 insertions, 27 deletions
@@ -1,6 +1,3 @@ -.htpasswd -.rvmrc -db/migrate.rb node_modules config.js builtAssets diff --git a/Gemfile b/Gemfile deleted file mode 100644 index bc9d3812..00000000 --- a/Gemfile +++ /dev/null @@ -1,2 +0,0 @@ -source 'https://rubygems.org' -gem 'activerecord' 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 |
