Sha256: dfafa5680ef6fceedbee92fe44dee883ff392024577eb6a154b1d9f6b0f78cf1
Contents?: true
Size: 1.28 KB
Versions: 3
Compression:
Stored size: 1.28 KB
Contents
class CreateEffectiveClassifieds < ActiveRecord::Migration[6.1] def change create_table <%= @classifieds_table_name %> do |t| t.integer :classified_submission_id t.string :classified_submission_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 t.timestamps end add_index :classifieds, [:owner_id, :owner_type] add_index :classifieds, :slug create_table <%= @classified_submissions_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 t.datetime :updated_at t.datetime :created_at end add_index :classified_submissions, [:owner_id, :owner_type] add_index :classified_submissions, :token end end
Version data entries
3 entries across 3 versions & 1 rubygems