Sha256: 28422e099f9b1e6709353e75ecd9152ed6485c20956e6757f08587e55bb22863
Contents?: true
Size: 495 Bytes
Versions: 12
Compression:
Stored size: 495 Bytes
Contents
class CreateEmailAddresses < ActiveRecord::Migration def self.up ActiveRecord::Base.establish_connection :users create_table :email_addresses do |t| t.column :address, :string, :null => false t.column :primary, :boolean t.column :account_id, :integer, :null => false t.column :created_at, :datetime t.column :updated_at, :datetime end end def self.down ActiveRecord::Base.establish_connection :users drop_table :email_addresses end end
Version data entries
12 entries across 12 versions & 2 rubygems