module TbCheckout::Schema::Statements

Public Instance Methods

add_tb_checkout_purchasable(table_name) click to toggle source

Add purchasable columns to the given database table

# File lib/tb_checkout/schema.rb, line 16
def add_tb_checkout_purchasable(table_name)
  add_column(table_name, :description, :string)
  add_column(table_name, :price, :decimal, :precision => 8, :scale => 2)
end
remove_tb_checkout_purchasable(table_name) click to toggle source

Remove purchasable columns from the given database table

# File lib/tb_checkout/schema.rb, line 23
def remove_tb_checkout_purchasable(table_name)
  remove_column(table_name, :description)
  remove_column(table_name, :price)
end