Sha256: ca73818a80133b06f6b3074b76e049dd571fb0cb08caa5f00b5ca33ce68246d4

Contents?: true

Size: 652 Bytes

Versions: 13

Compression:

Stored size: 652 Bytes

Contents

class CreateEffectivePosts < ActiveRecord::Migration[4.2]
  def self.up
    create_table <%= @posts_table_name %> do |t|
      t.integer :user_id

      t.string :title
      t.string :category

      t.boolean :draft, :default => false
      t.datetime :published_at

      t.text :tags

      t.integer :roles_mask, :default => 0

      # 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

  def self.down
    drop_table <%= @posts_table_name %>
  end

end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
effective_posts-0.7.1 db/migrate/01_create_effective_posts.rb.erb
effective_posts-0.7.0 db/migrate/01_create_effective_posts.rb.erb
effective_posts-0.6.4 db/migrate/01_create_effective_posts.rb.erb
effective_posts-0.6.3 db/migrate/01_create_effective_posts.rb.erb
effective_posts-0.6.2 db/migrate/01_create_effective_posts.rb.erb
effective_posts-0.6.1 db/migrate/01_create_effective_posts.rb.erb
effective_posts-0.6.0 db/migrate/01_create_effective_posts.rb.erb
effective_posts-1.0.1 db/migrate/01_create_effective_posts.rb.erb
effective_posts-0.5.10 db/migrate/01_create_effective_posts.rb.erb
effective_posts-1.0.0 db/migrate/01_create_effective_posts.rb.erb
effective_posts-0.5.8 db/migrate/01_create_effective_posts.rb.erb
effective_posts-0.5.7 db/migrate/01_create_effective_posts.rb.erb
effective_posts-0.5.6 db/migrate/01_create_effective_posts.rb.erb