Sha256: 62448c261ad159661fb2533a308a4a53909ece0a257623396507344bb462deba

Contents?: true

Size: 328 Bytes

Versions: 2

Compression:

Stored size: 328 Bytes

Contents

class CreateApiToken < ActiveRecord::Migration
  def up
    create_table :api_tokens do |t|
      t.column :token, :string
      t.column :description, :string
      t.column :api_type, :string
      t.references :tokenable, :polymorphic => true
      t.timestamps
    end
  end

  def down
    drop_table :api_tokens
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
iugusdk-1.0.0.alpha.5 db/migrate/20121023113304_create_api_token.rb
iugusdk-1.0.0.alpha.4 db/migrate/20121023113304_create_api_token.rb