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