Sha256: b2378a50840ad4622ec253e347383afb637bd1ac9c667641cfa9ec97919c4eb3

Contents?: true

Size: 378 Bytes

Versions: 7

Compression:

Stored size: 378 Bytes

Contents

class CreateHeaders < ActiveRecord::Migration
  def self.up
    create_table :headers do |t|
      t.string    :headerable_type, :limit => 30, :null => false
      t.integer   :headerable_id, :null => false
      
      t.timestamps
    end
    
    add_index :headers, [:headerable_type, :headerable_id], :unique => true
  end

  def self.down
    drop_table :headers
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ab_admin-0.2.3 db/migrate/20130101000004_create_headers.rb
ab_admin-0.2.2 db/migrate/20130101000004_create_headers.rb
ab_admin-0.2.1 db/migrate/20130101000004_create_headers.rb
ab_admin-0.2.0 db/migrate/20130101000004_create_headers.rb
ab_admin-0.1.2 db/migrate/20130101000004_create_headers.rb
ab_admin-0.1.1 db/migrate/20130101000004_create_headers.rb
ab_admin-0.1.0 db/migrate/20130101000004_create_headers.rb