cirandas.net

ref: master

plugins/driven_signup/db/migrate/20150625143118_create_driven_signup_plugin_token.rb


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
class CreateDrivenSignupPluginToken < ActiveRecord::Migration

  def change
    create_table :driven_signup_plugin_auths do |t|
      t.integer :environment_id
      t.string :name
      t.string :token

      t.timestamps
    end
    add_index :driven_signup_plugin_auths, :environment_id
    add_index :driven_signup_plugin_auths, :token
    add_index :driven_signup_plugin_auths, [:environment_id, :token]
  end

end