diff options
author | Philip Arndt <parndt@gmail.com> | 2010-09-03 23:32:07 +1200 |
---|---|---|
committer | Philip Arndt <parndt@gmail.com> | 2010-09-03 23:32:07 +1200 |
commit | a2f655b55eb30a900020e8aff9601ed0606ce58f (patch) | |
tree | d57cf7aef6ae36a4751144587fab7fe2e508d491 /generators/refinery_blog/templates/migration.rb | |
parent | c4222bfdf5733d1552a2ecf4468d89cf89a583b1 (diff) | |
download | refinerycms-blog-a2f655b55eb30a900020e8aff9601ed0606ce58f.tar.gz refinerycms-blog-a2f655b55eb30a900020e8aff9601ed0606ce58f.tar.bz2 refinerycms-blog-a2f655b55eb30a900020e8aff9601ed0606ce58f.zip |
Hello rails3 support.
Diffstat (limited to 'generators/refinery_blog/templates/migration.rb')
-rw-r--r-- | generators/refinery_blog/templates/migration.rb | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/generators/refinery_blog/templates/migration.rb b/generators/refinery_blog/templates/migration.rb deleted file mode 100644 index 5ba29c6..0000000 --- a/generators/refinery_blog/templates/migration.rb +++ /dev/null @@ -1,26 +0,0 @@ -class <%= migration_name %> < ActiveRecord::Migration - - def self.up<% tables.each do |table| %> - create_table :<%= table[:table_name] %>, :id => <%= table[:id].to_s %> do |t| -<% table[:attributes].each do |attribute| -%> - t.<%= attribute.type %> :<%= attribute.name %> -<% end -%> - <%= 't.timestamps' if table[:id] %> - end - - <%= "add_index :#{table[:table_name]}, :id" if table[:id] %> -<% end -%> - load(Rails.root.join('db', 'seeds', 'refinerycms_blog.rb').to_s) - end - - def self.down - UserPlugin.destroy_all({:name => "refinerycms_blog"}) - - Page.delete_all({:link_url => "/blog"}) - -<% tables.each do |table| -%> - drop_table :<%= table[:table_name] %> -<% end -%> - end - -end |