Sha256: 7d2706f8d0b2558abb8681a5eddf699df1a7a95431c67982effdafdd025396fa

Contents?: true

Size: 365 Bytes

Versions: 8

Compression:

Stored size: 365 Bytes

Contents

class CreateCadeneroV1Accounts < ActiveRecord::Migration
  def change
    create_table :cadenero_accounts do |t|
      t.string :name
      t.string :subdomain
      t.string :authentication_token    
      t.references :owner

      t.timestamps
    end
    add_index :cadenero_accounts, :owner_id
    add_index :cadenero_accounts, :authentication_token
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
cadenero-0.0.2.b4 db/migrate/20130612061604_create_cadenero_v1_accounts.rb
cadenero-0.0.2.b3 db/migrate/20130612061604_create_cadenero_v1_accounts.rb
cadenero-0.0.2.b2 db/migrate/20130612061604_create_cadenero_v1_accounts.rb
cadenero-0.0.2.b1 db/migrate/20130612061604_create_cadenero_v1_accounts.rb
cadenero-0.0.2.a3 db/migrate/20130612061604_create_cadenero_v1_accounts.rb
cadenero-0.0.2.a2 db/migrate/20130612061604_create_cadenero_v1_accounts.rb
cadenero-0.0.2.a1 db/migrate/20130612061604_create_cadenero_v1_accounts.rb
cadenero-0.0.2.a db/migrate/20130612061604_create_cadenero_v1_accounts.rb