Sha256: e2578c32e52a178af592985e9845703b1bd75babf7f47be27717a7d03f32e200

Contents?: true

Size: 220 Bytes

Versions: 12

Compression:

Stored size: 220 Bytes

Contents

class CreateLabels < ActiveRecord::Migration
  def change
    create_table :labels do |t|

      t.string :name, null: false
      t.timestamps null: false

    end
    add_index :labels, :name, unique: false
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
ecrire-0.31.2 lib/ecrire/db/migrate/20140617224837_create_labels.rb
ecrire-0.31.1 lib/ecrire/db/migrate/20140617224837_create_labels.rb
ecrire-0.31.0 lib/ecrire/db/migrate/20140617224837_create_labels.rb
ecrire-0.30.3 lib/ecrire/db/migrate/20140617224837_create_labels.rb
ecrire-0.30.2 lib/ecrire/db/migrate/20140617224837_create_labels.rb
ecrire-0.30.1 lib/ecrire/db/migrate/20140617224837_create_labels.rb
ecrire-0.30.0 lib/ecrire/db/migrate/20140617224837_create_labels.rb
ecrire-0.29.0 lib/ecrire/db/migrate/20140617224837_create_labels.rb
ecrire-0.28.3 lib/ecrire/db/migrate/20140617224837_create_labels.rb
ecrire-0.28.2 lib/ecrire/db/migrate/20140617224837_create_labels.rb
ecrire-0.28.1 lib/ecrire/db/migrate/20140617224837_create_labels.rb
ecrire-0.28.0 lib/ecrire/db/migrate/20140617224837_create_labels.rb