Sha256: c54c4d25efb67058f71792f8c642846c97d7dc2dabb5cf92f1eb20a47c37b284

Contents?: true

Size: 512 Bytes

Versions: 7

Compression:

Stored size: 512 Bytes

Contents

class DevisePhoneAddTo<%= table_name.camelize %> < ActiveRecord::Migration
  def change
      add_column :<%= table_name %>, :phone_number, :string
      add_column :<%= table_name %>, :phone_number_verified, :boolean
      add_column :<%= table_name %>, :phone_verification_code, :string, :limit => 6
      add_column :<%= table_name %>, :phone_verification_code_sent_at, :datetime
      add_column :<%= table_name %>, :phone_verified_at, :datetime

      add_index 	:<%= table_name %>, :phone_number
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
devise_phone-0.1.26 lib/generators/active_record/templates/migration.rb
devise_phone-0.1.25 lib/generators/active_record/templates/migration.rb
devise_phone-0.1.24 lib/generators/active_record/templates/migration.rb
devise_phone-0.1.23 lib/generators/active_record/templates/migration.rb
devise_phone-0.1.22 lib/generators/active_record/templates/migration.rb
devise_phone-0.1.21 lib/generators/active_record/templates/migration.rb
devise_phone-0.1.2 lib/generators/active_record/templates/migration.rb