Module: Atreides::Schema::Statements

Defined in:
lib/atreides/schema.rb

Instance Method Summary collapse

Instance Method Details

#add_publishable(table_name) ⇒ Object



20
21
22
23
24
# File 'lib/atreides/schema.rb', line 20

def add_publishable(table_name)
  COLUMNS.each_pair do |column_name, column_type|
    add_column(table_name, column_name, column_type)
  end
end

#remove_publishable(table_name) ⇒ Object



26
27
28
29
30
# File 'lib/atreides/schema.rb', line 26

def remove_publishable(table_name)
  COLUMNS.each_pair do |column_name, column_type|
    remove_column(table_name, column_name)
  end
end