Sha256: 3b3ae92345ceb49cbfcc4922c8cb8db14353bc75935f46af47596e939af9de49
Contents?: true
Size: 806 Bytes
Versions: 1
Compression:
Stored size: 806 Bytes
Contents
class CreateWidgets < ActiveRecord::Migration def change # Widgets are used as a content model for testing only. create_table :widgets do |t| # widget-specific attributes t.string :title t.string :short_title t.integer :image_id t.string :format, default: "markdown" t.text :content # optional attributes that will be set if they exist t.string :full_path, limit: 1000 # Standard model attributes t.integer :site_id t.integer :entry_id t.integer :revision t.string :status, default: 'draft' t.integer :category_id t.datetime :published_at, :archived_at t.integer :created_by, :updated_by, default: 0 t.integer :published_by, :archived_by, default: 0 t.timestamps end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
challah-1.1.1 | test/dummy/db/migrate/20140114212939_create_widgets.rb |