Sha256: 0a22c6720f6899ce47eeb1e1e3cf874e13ca634d3383daf20a7638e4448c287e

Contents?: true

Size: 348 Bytes

Versions: 4

Compression:

Stored size: 348 Bytes

Contents

class UserEmails < ActiveRecord::Migration
  def self.up
    create_table :user_emails do |t|
      t.column :active, :boolean, :default => true
      t.column :email, :string
      t.column :failures, :integer, :default => 0
      t.column :user_id, :integer
      t.timestamps
    end
  end

  def self.down
    drop_table :user_emails
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
winton-sum-0.1.0 db/migrate/002_user_emails.rb
winton-sum-0.1.1 db/migrate/002_user_emails.rb
sum-0.1.2 db/migrate/002_user_emails.rb
sum-0.1.1 db/migrate/002_user_emails.rb