Sha256: 25fc331b1ad3aba5d5a661658ff2444e6cc5d7ef2232c89b5c601bd7c818743b

Contents?: true

Size: 339 Bytes

Versions: 3

Compression:

Stored size: 339 Bytes

Contents

class AddOnlyChildren < ActiveRecord::Migration
  def up
    create_table :only_children, :force => true do |t|
      t.string     :name
      t.references :parent
      t.references :draft
      t.datetime   :trashed_at
      t.datetime   :published_at
      t.timestamps
    end
  end

  def down
    drop_table :only_children
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
draftsman-0.3.6 spec/dummy/db/migrate/20150408234937_add_only_children.rb
draftsman-0.3.5 spec/dummy/db/migrate/20150408234937_add_only_children.rb
draftsman-0.3.4 spec/dummy/db/migrate/20150408234937_add_only_children.rb