Sha256: dbab3ec584b44e7b31a0879c895c1301040da7fb7443332a1e3a1d16d9248ea7
Contents?: true
Size: 774 Bytes
Versions: 8
Compression:
Stored size: 774 Bytes
Contents
class CreateNodes < ActiveRecord::Migration::Current include ActiveRecord::Concerns::Base ######################################### ######################################### # => Up # => enable_extension for Ruby 2.4.0 on Heroku def up enable_extension 'uuid-ossp' if adapter == "postgresql" # => http://theworkaround.com/2015/06/12/using-uuids-in-rails.html#postgresql # => Table create_table table, uuid do |t| # => users stored through "associations" t.references :user t.string :type t.string :slug t.string :ref t.text :val, length: 4294967295 t.timestamps end end ######################################### ######################################### end
Version data entries
8 entries across 8 versions & 1 rubygems