Sha256: ee02a1bfd888c11024e899e462d705ff04967751f3b17ea2a72159762cc5597d

Contents?: true

Size: 729 Bytes

Versions: 13

Compression:

Stored size: 729 Bytes

Contents

class CreateEffectivePosts < ActiveRecord::Migration[6.0]
  def change
    create_table :posts do |t|
      t.integer :user_id
      t.string :user_type

      t.string :title
      t.string :description

      t.string :category
      t.string :slug

      t.datetime :published_start_at
      t.datetime :published_end_at
      t.boolean :legacy_draft, default: false

      t.text :tags

      t.integer :roles_mask, default: 0
      t.boolean :archived, default: false

      # Events fields
      t.datetime :start_at
      t.datetime :end_at
      t.string :location
      t.string :website_name
      t.string :website_href

      t.text :extra

      t.datetime :updated_at
      t.datetime :created_at
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
effective_posts-2.9.3 db/migrate/101_create_effective_posts.rb
effective_posts-2.9.2 db/migrate/101_create_effective_posts.rb
effective_posts-2.9.1 db/migrate/101_create_effective_posts.rb
effective_posts-2.9.0 db/migrate/101_create_effective_posts.rb
effective_posts-2.8.0 db/migrate/101_create_effective_posts.rb
effective_posts-2.7.4 db/migrate/101_create_effective_posts.rb
effective_posts-2.7.3 db/migrate/101_create_effective_posts.rb
effective_posts-2.7.2 db/migrate/101_create_effective_posts.rb
effective_posts-2.7.1 db/migrate/101_create_effective_posts.rb
effective_posts-2.7.0 db/migrate/101_create_effective_posts.rb
effective_posts-2.6.2 db/migrate/101_create_effective_posts.rb
effective_posts-2.6.1 db/migrate/101_create_effective_posts.rb
effective_posts-2.6.0 db/migrate/101_create_effective_posts.rb