Sha256: 2c44c237c2e9883247b8ef5e2a0939478dc16b9981a1c4c019403694ef8ff9bc
Contents?: true
Size: 243 Bytes
Versions: 2
Compression:
Stored size: 243 Bytes
Contents
class AddAncestryToPages < ActiveRecord::Migration def self.up add_column :pages, :ancestry, :string add_index :pages, :ancestry end def self.down remove_column :pages, :ancestry remove_index :pages, :ancestry end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sushifish-0.9.6 | lib/generators/sushi/templates/migrations/ancestry_migration.rb |
sushifish-0.9.0 | lib/generators/sushi/templates/migrations/ancestry_migration.rb |