Sha256: ac91c2827325c999229859ebff8eaddb680a536e4729d99c389757d40db5bff4

Contents?: true

Size: 515 Bytes

Versions: 3

Compression:

Stored size: 515 Bytes

Contents

class CreatePliesAndPlyRelations < ActiveRecord::Migration
  def change
    create_table :plies do |t|
        t.integer  :user_id
        t.string   :oid
        t.string   :otype
        t.json     :data
        t.hstore   :ohash
        t.datetime :last_modified
        t.datetime :last_checked

        t.timestamps
    end

    create_table :ply_relations do |t|
      t.integer :parent_id
      t.string :parent_type
      t.integer :child_id
      t.string :child_type

      t.timestamps
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pliable-0.2.1 lib/generators/pliable/templates/migration.rb
pliable-0.2.0 lib/generators/pliable/templates/migration.rb
pliable-0.1.0 lib/generators/pliable/templates/migration.rb