Sha256: a0cd7917ecf227aacdc6b85f14036a0dc5a9879815ccdf839f0b79d19241ce5e
Contents?: true
Size: 693 Bytes
Versions: 33
Compression:
Stored size: 693 Bytes
Contents
class CreateEffectiveAddresses < ActiveRecord::Migration def self.up create_table <%= @addresses_table_name %> do |t| t.string :addressable_type t.integer :addressable_id t.string :category, :limit => 64 t.string :full_name t.string :address1 t.string :address2 t.string :city t.string :state_code t.string :country_code t.string :postal_code t.datetime :updated_at t.datetime :created_at end add_index <%= @addresses_table_name %>, [:addressable_type, :addressable_id] add_index <%= @addresses_table_name %>, :addressable_id end def self.down drop_table <%= @addresses_table_name %> end end
Version data entries
33 entries across 33 versions & 1 rubygems