module JT::Rails::Address::Schema::TableDefinition
Public Instance Methods
address(*arguments)
click to toggle source
# 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