Sha256: 68f5813dc6dc4ad15ac755f2cfe58b781cecf4cd6c9ea3f92d471691dd4a0129
Contents?: true
Size: 403 Bytes
Versions: 5
Compression:
Stored size: 403 Bytes
Contents
# This migration comes from beerify (originally 20130903130542) class CreateNews < ActiveRecord::Migration def change create_table :news do |t| t.datetime :published_on t.references :user t.string :photo t.string :slug t.string :title t.text :content t.timestamps end add_index :news, :user_id add_index :news, :slug, unique: true end end
Version data entries
5 entries across 5 versions & 1 rubygems