Sha256: 311be43aaa7cc70f0d8dbc2aae83a9cca5e9cb1e3b483a85ff4781e7977de798
Contents?: true
Size: 1.54 KB
Versions: 16
Compression:
Stored size: 1.54 KB
Contents
class CreateEffectiveClassifieds < ActiveRecord::Migration[6.1] def change create_table <%= @classifieds_table_name %> do |t| t.integer :classified_wizard_id t.string :classified_wizard_type t.integer :owner_id t.string :owner_type t.string :title t.string :category t.string :organization t.string :location t.string :website t.string :email t.string :phone t.datetime :start_on t.datetime :end_on t.string :slug t.string :status t.text :status_steps t.integer :roles_mask t.boolean :authenticate_user, default: false t.boolean :archived, default: false # Acts as purchasable t.integer :purchased_order_id t.integer :price t.boolean :tax_exempt, default: false t.string :qb_item_name t.timestamps end add_index <%= @classifieds_table_name %>, [:owner_id, :owner_type] add_index <%= @classifieds_table_name %>, :slug create_table <%= @classified_wizards_table_name %> do |t| t.string :token t.integer :owner_id t.string :owner_type # Acts as Statused t.string :status t.text :status_steps # Acts as Wizard t.text :wizard_steps # Dates t.datetime :submitted_at # Pricing t.string :price_category t.datetime :updated_at t.datetime :created_at end add_index <%= @classified_wizards_table_name %>, [:owner_id, :owner_type] add_index <%= @classified_wizards_table_name %>, :token end end
Version data entries
16 entries across 16 versions & 1 rubygems