Skip to content

Commit f847c03

Browse files
committed
change skill name to citext
1 parent 6b2ef7a commit f847c03

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
class ChangeSkillNameToCitex < ActiveRecord::Migration
2+
def up
3+
change_column :skills, :name, :citext
4+
end
5+
end

db/schema.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#
1212
# It's strongly recommended to check this file into your version control system.
1313

14-
ActiveRecord::Schema.define(:version => 20150720001425) do
14+
ActiveRecord::Schema.define(:version => 20150726134416) do
1515

1616
add_extension "citext"
1717
add_extension "hstore"
@@ -255,7 +255,7 @@
255255

256256
create_table "skills", :force => true do |t|
257257
t.integer "user_id"
258-
t.string "name", :null => false
258+
t.citext "name", :null => false
259259
t.integer "endorsements_count", :default => 0
260260
t.datetime "created_at"
261261
t.datetime "updated_at"

0 commit comments

Comments
 (0)