fixed conflict
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
class AddCompanyAddressEmail < ActiveRecord::Migration[5.1]
|
||||
def change
|
||||
add_column :order_items, :completed_by, :string
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
class OrderItemsCompletedBy < ActiveRecord::Migration[5.1]
|
||||
def change
|
||||
add_column :order_items, :completed_by, :string
|
||||
add_column :order_items, :completed_at, :datetime
|
||||
end
|
||||
end
|
||||
@@ -3,10 +3,10 @@ class CreatePrintSettings < ActiveRecord::Migration[5.1]
|
||||
create_table :print_settings do |t|
|
||||
t.string :name, :null => false
|
||||
t.string :unique_code, :null => false
|
||||
t.string :template, :null => false
|
||||
t.string :db_name, :null => false
|
||||
t.string :db_type, :null => false
|
||||
t.string :db_username, :null => false
|
||||
t.string :template
|
||||
t.string :db_name
|
||||
t.string :db_type
|
||||
t.string :db_username
|
||||
t.string :db_password
|
||||
t.string :printer_name, :null => false
|
||||
t.string :api_settings
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
class CreateSettingsMembershipActions < ActiveRecord::Migration[5.1]
|
||||
def change
|
||||
create_table :settings_membership_actions do |t|
|
||||
t.string :membership_type
|
||||
t.boolean :is_active
|
||||
t.string :gateway_communication_type
|
||||
t.string :gateway_url
|
||||
t.string :auth_token
|
||||
t.string :merchant_account_id
|
||||
t.string :created_by
|
||||
t.string :additional_parameter
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,5 @@
|
||||
class Additionparametertopaymentsettings < ActiveRecord::Migration[5.1]
|
||||
def change
|
||||
add_column :payment_method_settings, :additional_parameters, :string
|
||||
end
|
||||
end
|
||||
14
db/seeds.rb
14
db/seeds.rb
@@ -140,9 +140,13 @@ admin_employee = Employee.create({name: "Administrator", role: "Administrator",
|
||||
food = Account.create({title: "Food", account_type: "0"})
|
||||
beverage = Account.create({title: "Beverage", account_type: "1"})
|
||||
|
||||
shop = Shop.create(
|
||||
{name: "Beauty In The Pot", address: "address", township: "Yangon", city: "Yangon", state: "Yangon",
|
||||
country: "Myanmar", phone_no: "09123456789", reservation_no: "bip000001", license: "license",
|
||||
activated_at: "2017-06-06", license_data: "license_data", base_currency: "Ks", id_prefix: "abc"}
|
||||
)
|
||||
order_station1=PrintSetting.create({name: "OrderItemPdf", unique_code: "OrderItemPdf", printer_name: "EPSON-TM-T82-S-A"})
|
||||
order_station2=PrintSetting.create({name: "Order Summary", unique_code: "OrderSummaryPdf", printer_name: "EPSON-TM-T82-S-A"})
|
||||
request_bill_printer=PrintSetting.create({name: "Receipt Bill", unique_code: "ReceiptBillPdf", printer_name: "EPSON-TM-T82-S-A"})
|
||||
|
||||
# shop = Shop.create(
|
||||
# {name: "Beauty In The Pot", address: "address", township: "Yangon", city: "Yangon", state: "Yangon",
|
||||
# country: "Myanmar", phone_no: "09123456789", reservation_no: "bip000001", license: "license",
|
||||
# activated_at: "2017-06-06", license_data: "license_data", base_currency: "Ks", id_prefix: "abc"}
|
||||
# )
|
||||
|
||||
|
||||
Reference in New Issue
Block a user