Sha256: aeebfd6b77680468c4649a4eec42772172ab9f820a424d3715a0f4cd8bc60ef9

Contents?: true

Size: 325 Bytes

Versions: 3

Compression:

Stored size: 325 Bytes

Contents

class CreateClubhouseOrganizations < ActiveRecord::Migration
  def change
    create_table :clubhouse_organizations, id: :uuid do |t|
      t.string :name, null: false, limit: 30
      t.string :email, null: false

      t.timestamps null: false
    end

    add_index :clubhouse_organizations, :name, unique: true
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
clubhouse-0.3.0 db/migrate/20150226023025_create_clubhouse_organizations.rb
clubhouse-0.2.0 db/migrate/20150226023025_create_clubhouse_organizations.rb
clubhouse-0.1.0 db/migrate/20150226023025_create_clubhouse_organizations.rb