Module: JT::Rails::Address::Schema::TableDefinition
- Defined in:
- lib/schema.rb
Instance Method Summary collapse
Instance Method Details
#address(*arguments) ⇒ Object
43 44 45 46 47 48 49 50 51 |
# File 'lib/schema.rb', line 43 def address(*arguments) raise ArgumentError, "Please specify name in your address call in your migration." if arguments.empty? arguments.each do |prefix| COLUMNS.each_pair do |column_name, column_type| column("#{prefix}_#{column_name}", column_type) end end end |