diff options
Diffstat (limited to 'lib/active_storage')
-rw-r--r-- | lib/active_storage/engine.rb (renamed from lib/active_storage/railtie.rb) | 2 | ||||
-rw-r--r-- | lib/active_storage/migration.rb | 16 |
2 files changed, 9 insertions, 9 deletions
diff --git a/lib/active_storage/railtie.rb b/lib/active_storage/engine.rb index 76894c2e16..3512be0468 100644 --- a/lib/active_storage/railtie.rb +++ b/lib/active_storage/engine.rb @@ -1,4 +1,4 @@ -require "rails/railtie" +require "rails/engine" module ActiveStorage class Engine < Rails::Engine # :nodoc: diff --git a/lib/active_storage/migration.rb b/lib/active_storage/migration.rb index dce666edc1..c56e7a1786 100644 --- a/lib/active_storage/migration.rb +++ b/lib/active_storage/migration.rb @@ -1,13 +1,13 @@ class ActiveStorageCreateTables < ActiveRecord::Migration[5.1] # :nodoc: def change create_table :active_storage_blobs do |t| - t.string :key - t.string :filename - t.string :content_type - t.text :metadata - t.integer :byte_size - t.string :checksum - t.time :created_at + t.string :key + t.string :filename + t.string :content_type + t.text :metadata + t.integer :byte_size + t.string :checksum + t.datetime :created_at t.index [ :key ], unique: true end @@ -17,7 +17,7 @@ class ActiveStorageCreateTables < ActiveRecord::Migration[5.1] # :nodoc: t.string :record_gid t.integer :blob_id - t.time :created_at + t.datetime :created_at t.index :record_gid t.index :blob_id |