Sha256: 251a084401bf195923a4ce62cee1e7d4f5c88c974213f29715613847c6ff8303
Contents?: true
Size: 732 Bytes
Versions: 3
Compression:
Stored size: 732 Bytes
Contents
class CreateInquiries < ActiveRecord::Migration def up unless ::Refinery::Inquiries::Inquiry.table_exists? create_table :refinery_inquiries_inquiries, :force => true do |t| t.string :name t.string :email t.string :phone t.text :message t.boolean :spam, :default => false t.timestamps end add_index :refinery_inquiries_inquiries, :id end end def down drop_table ::Refinery::Inquiries::Inquiry.table_name if defined?(::Refinery::Page) ::Refinery::Page.delete_all(:link_url => Refinery::Inquiries.page_path_new) ::Refinery::Page.delete_all(:link_url => Refinery::Inquiries.page_path_thank_you) end end end
Version data entries
3 entries across 3 versions & 1 rubygems