Sha256: 805404fb4fb122d5d91728c856388c766e2e06ccfe4cffac8cab019e865cf81a
Contents?: true
Size: 459 Bytes
Versions: 18
Compression:
Stored size: 459 Bytes
Contents
class CreateNewsPosts < ActiveRecord::Migration def change create_table :news_posts do |t| t.text :title t.text :body t.integer :user_id t.datetime :start_date t.datetime :end_date t.integer :required_role_id, :default => 1, :null => false t.text :note t.integer :position t.boolean :draft, :default => false, :null => false t.timestamps end add_index :news_posts, :user_id end end
Version data entries
18 entries across 18 versions & 1 rubygems