Sha256: 41712349904f601d4b868eff52f378a38cb5cdbff9c79fec6c68e2e2ec769a30

Contents?: true

Size: 469 Bytes

Versions: 20

Compression:

Stored size: 469 Bytes

Contents

class CreateEffectivePosts < ActiveRecord::Migration
  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.text :tags

      t.integer :roles_mask, :default => 0

      t.datetime :published_at

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

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

end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
effective_posts-0.5.0 db/migrate/01_create_effective_posts.rb.erb
effective_posts-0.4.7 db/migrate/01_create_effective_posts.rb.erb
effective_posts-0.4.6 db/migrate/01_create_effective_posts.rb.erb
effective_posts-0.4.5 db/migrate/01_create_effective_posts.rb.erb
effective_posts-0.4.4 db/migrate/01_create_effective_posts.rb.erb
effective_posts-0.4.3 db/migrate/01_create_effective_posts.rb.erb
effective_posts-0.4.2 db/migrate/01_create_effective_posts.rb.erb
effective_posts-0.4.1 db/migrate/01_create_effective_posts.rb.erb
effective_posts-0.4.0 db/migrate/01_create_effective_posts.rb.erb
effective_posts-0.3.0 db/migrate/01_create_effective_posts.rb.erb
effective_posts-0.2.6 db/migrate/01_create_effective_posts.rb.erb
effective_posts-0.2.5 db/migrate/01_create_effective_posts.rb.erb
effective_posts-0.2.4 db/migrate/01_create_effective_posts.rb.erb
effective_posts-0.2.3 db/migrate/01_create_effective_posts.rb.erb
effective_posts-0.2.2 db/migrate/01_create_effective_posts.rb.erb
effective_posts-0.2.1 db/migrate/01_create_effective_posts.rb.erb
effective_posts-0.2.0 db/migrate/01_create_effective_posts.rb.erb
effective_posts-0.1.2 db/migrate/01_create_effective_posts.rb.erb
effective_posts-0.1.1 db/migrate/01_create_effective_posts.rb.erb
effective_posts-0.1 db/migrate/01_create_effective_posts.rb.erb