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