Sha256: b96b8190bfdd447d76e967fcb57d998af7ff4b52de14334463a6187663996d2f

Contents?: true

Size: 257 Bytes

Versions: 16

Compression:

Stored size: 257 Bytes

Contents

class CreateAdmins < ActiveRecord::Migration
  def self.up
    create_table :admins do |t|
      t.integer :user_id
      t.integer :level
      t.timestamps
    end

    add_index :admins, [:user_id]
  end

  def self.down
    drop_table :admins
  end
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
platform-3.1.4 test/dummy/db/migrate/20110113223509_create_admins.rb
tr8n-3.2.3 local/tr8n_server/db/migrate/20110113223509_create_admins.rb
tr8n-3.2.2 local/tr8n_server/db/migrate/20110113223509_create_admins.rb
tr8n-3.2.1 local/tr8n_server/db/migrate/20110113223509_create_admins.rb
tr8n-3.2.0 local/tr8n_server/db/migrate/20110113223509_create_admins.rb
tr8n-3.1.8 local/tr8n_server/db/migrate/20110113223509_create_admins.rb
tr8n-3.1.7 local/tr8n_server/db/migrate/20110113223509_create_admins.rb
platform-3.1.3 test/dummy/db/migrate/20110113223509_create_admins.rb
tr8n-3.1.6 local/tr8n_server/db/migrate/20110113223509_create_admins.rb
tr8n-3.1.5 local/tr8n_server/db/migrate/20110113223509_create_admins.rb
tr8n-3.1.4 local/tr8n_server/db/migrate/20110113223509_create_admins.rb
tr8n-3.1.3 local/tr8n_server/db/migrate/20110113223509_create_admins.rb
tr8n-3.1.2 local/tr8n_server/db/migrate/20110113223509_create_admins.rb
platform-3.1.2 test/dummy/db/migrate/20110113223509_create_admins.rb
platform-3.1.1 test/dummy/db/migrate/20110113223509_create_admins.rb
tr8n-3.1.1 test/dummy/db/migrate/20110113223509_create_admins.rb