Sha256: 93bcd4ee5f6e7579d9eda084d1224f4d9326b8833e0668fafcb997c1fd87824e

Contents?: true

Size: 267 Bytes

Versions: 13

Compression:

Stored size: 267 Bytes

Contents

class CreateBlogoTags < ActiveRecord::Migration
  def change
    tags_table = "#{Blogo.table_name_prefix}tags"

    create_table(tags_table) do |t|
      t.string :name, null: false

      t.timestamps
    end

    add_index tags_table, :name, unique: true
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
blogo-0.1.4 db/migrate/20140218134512_create_blogo_tags.rb
blogo-0.1.3 db/migrate/20140218134512_create_blogo_tags.rb
blogo-0.1.2 db/migrate/20140218134512_create_blogo_tags.rb
blogo-0.1.1 db/migrate/20140218134512_create_blogo_tags.rb
blogo-0.1.0 db/migrate/20140218134512_create_blogo_tags.rb
blogo-0.0.10 db/migrate/20140218134512_create_blogo_tags.rb
blogo-0.0.9 db/migrate/20140218134512_create_blogo_tags.rb
blogo-0.0.8 db/migrate/20140218134512_create_blogo_tags.rb
blogo-0.0.7 db/migrate/20140218134512_create_blogo_tags.rb
blogo-0.0.6 db/migrate/20140218134512_create_blogo_tags.rb
blogo-0.0.5 db/migrate/20140218134512_create_blogo_tags.rb
blogo-0.0.4 db/migrate/20140218134512_create_blogo_tags.rb
blogo-0.0.3 db/migrate/20140218134512_create_blogo_tags.rb