Method: Netfira::WebConnect::Migration#create_file_table
- Defined in:
- lib/netfira/web_connect/migration.rb
#create_file_table(table_name) ⇒ Object
52 53 54 55 56 57 58 59 60 |
# File 'lib/netfira/web_connect/migration.rb', line 52 def create_file_table(table_name) create_record_table table_name, origin_key: :file_name, file: true do |t| t.string :remote_location t.string :locale yield t if block_given? t.integer :size t.binary :checksum, limit: 16 end end |