Sha256: 95c179ce3a4b96f37343b9602cd215f6d81674d3e1a9422b0d5304d0b8c0c26f

Contents?: true

Size: 567 Bytes

Versions: 5

Compression:

Stored size: 567 Bytes

Contents

class CreateSecondstepTables < ActiveRecord::Migration
  def change
    create_table :second_step_application_users do |t|
      t.string     :phone
      t.string     :uuid
      t.references :user, polymorphic: true, index: true
      t.timestamps
    end

    add_index :second_step_application_users, [:uuid, :phone], unique: true

    create_table :second_step_application_user_links do |t|
      t.string     :secret
      t.string     :uuid
      t.references :second_step_application_users, index: true, forgein_key: true
      t.timestamps
    end
  end
end

Version data entries

5 entries across 4 versions & 1 rubygems

Version Path
second_step-0.2.0 lib/generators/second_step/migration/templates/migration.rb
second_step-0.1.4 lib/generators/second_step/migration/templates/migration.rb
second_step-0.1.3 lib/generators/second_step/migration/templates/migration.rb
second_step-0.1.2 lib/generators/second_step/migration/templates/migration.rb
second_step-0.1.2 secondstep-notify-1.0.0-osx/lib/ruby/lib/ruby/gems/2.2.0/gems/second_step-0.1.1/lib/generators/second_step/migration/templates/migration.rb