Class: AddOrderBit

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/add_order_bit.rb

Constant Summary collapse

ORDER_BIT_DEFAULT =
100

Class Method Summary collapse

Class Method Details

.add_to_table(table_name) ⇒ Object



6
7
8
# File 'lib/add_order_bit.rb', line 6

def self.add_to_table(table_name)
  add_column table_name, :order_bit, :integer, :default => ORDER_BIT_DEFAULT
end