Sha256: 3ae038de66444fd3a91e341952efb65ba37f770150fbef6fd50e04ed3c1a4410
Contents?: true
Size: 515 Bytes
Versions: 25
Compression:
Stored size: 515 Bytes
Contents
class CreateMetaTags < ActiveRecord::Migration def self.up create_table :meta_tags do |t| t.string :name, :limit => 50, :null => false t.text :content t.boolean :is_dynamic, :default => false t.integer :taggable_id, :null => false t.string :taggable_type, :limit => 50, :null => false t.timestamps end add_index :meta_tags, :name add_index :meta_tags, [:taggable_type, :taggable_id] end def self.down drop_table :meta_tags end end
Version data entries
25 entries across 20 versions & 2 rubygems