Sha256: e32df508282c4ef500c0f5ae1e7a3f0749a8801d3cd0023a259fdf1c1c0f62cd

Contents?: true

Size: 362 Bytes

Versions: 3

Compression:

Stored size: 362 Bytes

Contents

class CreateStatixitePosts < ActiveRecord::Migration
  def change
    create_table :statixite_posts do |t|
      t.string  :title
      t.text    :content
      t.integer :site_id
      t.json    :front_matter, default: {}, null: false
      t.string  :slug
      t.string  :filename
      t.timestamps
    end
    add_index :statixite_posts, :site_id
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
statixite-1.0.2 db/migrate/20150530041055_create_statixite_posts.rb
statixite-1.0.1 db/migrate/20150530041055_create_statixite_posts.rb
statixite-1.0.0 db/migrate/20150530041055_create_statixite_posts.rb