Skip to content

Commit

Permalink
Remove old code.
Browse files Browse the repository at this point in the history
  • Loading branch information
ugisozols committed Jul 19, 2011
1 parent b1387f0 commit f5cf93c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
13 changes: 1 addition & 12 deletions db/migrate/20101208082840_create_inquiries.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,14 @@ def self.up
add_index ::Inquiry.table_name, :id
end

# todo: remove at 1.0
create_table ::InquirySetting.table_name, :force => true do |t|
t.string "name"
t.text "value"
t.boolean "destroyable"
t.datetime "created_at"
t.datetime "updated_at"
end unless ::InquirySetting.table_exists?

::Page.reset_column_information if defined?(::Page)

load(Rails.root.join('db', 'seeds', 'pages_for_inquiries.rb').to_s)
end

def self.down
drop_table ::Inquiry.table_name
# todo: remove at 1.0
drop_table ::InquirySetting.table_name


::Page.delete_all({
:link_url => ("/contact" || "/contact/thank_you")
}) if defined?(::Page)
Expand Down
11 changes: 11 additions & 0 deletions db/migrate/20110719082646_drop_inquiry_settings_table.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
class DropInquirySettingsTable < ActiveRecord::Migration
def self.up
if ::InquirySetting.table_exists?
drop_table ::InquirySetting.table_name
end
end

def self.down
# we don't want to restore inquiry settings table
end
end

0 comments on commit f5cf93c

Please sign in to comment.