Sha256: e8a3bdff4d104aedd53b76355b652d5d8d544cb9543ca115c8aa817014fbf4b2
Contents?: true
Size: 659 Bytes
Versions: 2
Compression:
Stored size: 659 Bytes
Contents
class CreatePhoneNumbers < ActiveRecord::Migration def self.up create_table :phone_numbers do |t| t.column :phoneable_id, :integer, :null => false, :references => nil t.column :phoneable_type, :string, :null => false # Default is the United States t.column :country_code, :string, :null => false, :limit => 3, :default => 1 t.column :number, :string, :null => false, :limit => 12 t.column :extension, :string, :limit => 10 t.column :created_at, :timestamp, :null => false t.column :updated_at, :datetime, :null => false end end def self.down drop_table :phone_numbers end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
has_phone_numbers-0.0.1 | db/migrate/001_create_phone_numbers.rb |
has_phone_numbers-0.0.2 | db/migrate/001_create_phone_numbers.rb |