Sha256: a689f72d64e092ada02b6e1d85c625bc6bb901d3fe7fdb9eaa165ac24aaa5911
Contents?: true
Size: 579 Bytes
Versions: 1
Compression:
Stored size: 579 Bytes
Contents
superclass = ActiveRecord::VERSION::MAJOR < 5 ? ActiveRecord::Migration : ActiveRecord::Migration[4.2] class CreateTokens < superclass def change create_table :visa_tokens do |t| t.string :tokenable_type, null: false t.integer :tokenable_id, null: false t.string :client_id, null: false t.string :encrypted_secret, null: false t.datetime :last_requested_at t.timestamps null: false end add_index :visa_tokens, [:tokenable_type, :tokenable_id] add_index :visa_tokens, :client_id, unique: true end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
visa-0.1.0 | db/migrate/1_create_tokens.rb |