Sha256: 6e7f96d07ac591e86c1445e231d80e2bf90b4cc6b7042d901b234b14fb82cd07

Contents?: true

Size: 367 Bytes

Versions: 7

Compression:

Stored size: 367 Bytes

Contents

class CreateNoteeImages < ActiveRecord::Migration
  class NoteeImage < ActiveRecord::Base; end

  def change
    create_table :notee_images do |t|

      t.string :content, null: false, uniqueness: true
      t.boolean :is_deleted, null: false, default: false

      # if you have user_id
      # t.integer :user_id

      t.timestamps null: false
    end
  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
notee-1.1.2.4 db/migrate/20160605141547_create_notee_images.rb
notee-1.1.2.3 db/migrate/20160605141547_create_notee_images.rb
notee-1.1.2.2 db/migrate/20160605141547_create_notee_images.rb
notee-1.1.2.1 db/migrate/20160605141547_create_notee_images.rb
notee-1.1.2 db/migrate/20160605141547_create_notee_images.rb
notee-1.1.1 db/migrate/20160605141547_create_notee_images.rb
notee-1.1.0 db/migrate/20160605141547_create_notee_images.rb