shop_setup branch
This commit is contained in:
@@ -7,7 +7,7 @@ class CreateSalePayments < ActiveRecord::Migration[5.0]
|
||||
t.decimal :outstanding_amount, :precision => 10, :scale => 2, :null => false, :default => 0.00
|
||||
t.string :payment_reference
|
||||
t.string :payment_status, :null => false, :default => "new"
|
||||
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
|
||||
@@ -5,7 +5,6 @@ class CreateSeedGenerators < ActiveRecord::Migration[5.0]
|
||||
t.integer :increase_by, :null => false, :default => 1
|
||||
t.bigint :current, :null => false ,:default => 1
|
||||
t.bigint :next, :null => false, :default => 2
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
|
||||
25
db/migrate/20170530072247_create_shops.rb
Normal file
25
db/migrate/20170530072247_create_shops.rb
Normal file
@@ -0,0 +1,25 @@
|
||||
class CreateShops < ActiveRecord::Migration[5.1]
|
||||
def change
|
||||
create_table :shops do |t|
|
||||
t.string :logo
|
||||
t.string :name, :null => false
|
||||
t.string :address, :null => false
|
||||
t.string :township, :null => false
|
||||
t.string :city, :null => false
|
||||
t.string :state, :null => false
|
||||
t.string :country, :null => false
|
||||
t.string :phone_no, :null => false
|
||||
t.string :reserviation_no, :null => false
|
||||
t.string :license, :null => false
|
||||
t.datetime :activated_at, :null => false
|
||||
t.text :license_data, :null => false
|
||||
t.string :base_currency, :null => false, :limit => 3
|
||||
t.string :cloud_url
|
||||
t.string :cloud_token
|
||||
t.string :owner_token
|
||||
t.string :id_prefix, :null => false, :limit => 3
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user