Commit 99ca4670 authored by Michael Rose's avatar Michael Rose

story_clicks: change ip to inet type

parent 8c3a0ac7
class ChangeIpToInet < ActiveRecord::Migration
def change
change_table :story_clicks do |t|
t.change :ip, 'inet', using: 'ip::inet'
end
end
end
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
# #
# It's strongly recommended that you check this file into your version control system. # It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20170331015942) do ActiveRecord::Schema.define(version: 20170331024612) do
# These are extensions that must be enabled in order to support this database # These are extensions that must be enabled in order to support this database
enable_extension "plpgsql" enable_extension "plpgsql"
...@@ -204,7 +204,7 @@ ActiveRecord::Schema.define(version: 20170331015942) do ...@@ -204,7 +204,7 @@ ActiveRecord::Schema.define(version: 20170331015942) do
t.integer "user_id" t.integer "user_id"
t.jsonb "search" t.jsonb "search"
t.integer "page", null: false t.integer "page", null: false
t.string "ip" t.inet "ip"
t.string "user_agent" t.string "user_agent"
t.datetime "created_at", null: false t.datetime "created_at", null: false
t.datetime "updated_at", null: false t.datetime "updated_at", null: false
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment