diff options
author | Uģis Ozols <ugis.ozolss@gmail.com> | 2011-07-27 13:46:24 +0300 |
---|---|---|
committer | Uģis Ozols <ugis.ozolss@gmail.com> | 2011-07-27 13:46:24 +0300 |
commit | 3fa8937b95a4d90000ad1be9c588424052136455 (patch) | |
tree | 07e61cd13bd88a76d13c3d759475d67d088d5f6e /db/migrate/3_acts_as_taggable_on_migration.rb | |
parent | e5db679226bac7ef8ddd568c40f52addd52d7a8a (diff) | |
download | refinerycms-blog-3fa8937b95a4d90000ad1be9c588424052136455.tar.gz refinerycms-blog-3fa8937b95a4d90000ad1be9c588424052136455.tar.bz2 refinerycms-blog-3fa8937b95a4d90000ad1be9c588424052136455.zip |
Rails 3.1 - wip.
Diffstat (limited to 'db/migrate/3_acts_as_taggable_on_migration.rb')
-rw-r--r-- | db/migrate/3_acts_as_taggable_on_migration.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/db/migrate/3_acts_as_taggable_on_migration.rb b/db/migrate/3_acts_as_taggable_on_migration.rb index 1661061..812daf4 100644 --- a/db/migrate/3_acts_as_taggable_on_migration.rb +++ b/db/migrate/3_acts_as_taggable_on_migration.rb @@ -1,5 +1,5 @@ class ActsAsTaggableOnMigration < ActiveRecord::Migration - def self.up + def up create_table :tags do |t| t.string :name end @@ -21,7 +21,7 @@ class ActsAsTaggableOnMigration < ActiveRecord::Migration add_index :taggings, [:taggable_id, :taggable_type, :context] end - def self.down + def down drop_table :taggings drop_table :tags end |