class CreateSecondstepTables
Public Instance Methods
change()
click to toggle source
# File lib/generators/second_step/migration/templates/migration.rb, line 2 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