Sha256: fa86b5d30963c9ad4bc84a520298bcc6660d1e4febc1a666f976050992deac61

Contents?: true

Size: 276 Bytes

Versions: 1

Compression:

Stored size: 276 Bytes

Contents

class CreateBites < ActiveRecord::Migration
  def up
    create_table :bites do |t|
      t.string :identifier, null: false
      t.text :text, null: false, default: ""
    end

    add_index :bites, :identifier, unique: true
  end

  def down
    drop_table :bites
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bites-1.0.0 lib/generators/bites/install/templates/create_bites.rb