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