Sha256: 9d4d093556a74d3fff6617e99339ac78e17a585128c107d2b6da35e05d0688bb
Contents?: true
Size: 413 Bytes
Versions: 6
Compression:
Stored size: 413 Bytes
Contents
class CreateTranscriptionsTable < ActiveRecord::Migration def self.up create_table :transcriptions do |t| <% transcribable_attrs.each do |name, type| %> t.<%= type.to_s %> :<%= name %> <% end %> t.integer :<%= @table.singularize %>_id t.string :user_id # by default, this will be a UUID stored by cookie end end def self.down drop_table :transcriptions end end
Version data entries
6 entries across 6 versions & 1 rubygems