Sha256: ddc5a137e2d5855242e256f0e8f098cd73296e514894c53ef573a8d4db9e9abb

Contents?: true

Size: 257 Bytes

Versions: 3

Compression:

Stored size: 257 Bytes

Contents

class CreateUeditorAssets < ActiveRecord::Migration<%= migration_version %>
  def change
    create_table :ueditor_assets do |t|
      t.string :name
      t.string  :type, limit: 30

      t.timestamps
    end
    add_index :ueditor_assets, :type
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
baidu_ueditor_rails5-0.3.1 lib/generators/baidu_ueditor_rails/install/templates/migration.rb
baidu_ueditor_rails5-0.3.0 lib/generators/baidu_ueditor_rails/install/templates/migration.rb
baidu_ueditor_rails5-0.2.0 lib/generators/baidu_ueditor_rails/install/templates/migration.rb