blob: 2a9184e3664eafe3229cb6dcbb5648e6fd204e44 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
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
|