Skip to content

Behave like t.timestamp: Add extra attributes in all migration with just calling t.ealing(column_name: :column_type)

License

Notifications You must be signed in to change notification settings

sajjadmurtaza/eagling

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Eagling

Installation

Add this line to your application's Gemfile:

gem 'eagling', :git => 'https://github.com/sajjadmurtaza49/eagling'

or

gem 'eagling'

And then execute:

$ bundle

Or install it yourself as:

    $ gem install eagling

Usage

  • Where you want extra attribues in you migration, just add
  • t.eagling(column_name1: :data_type, column_name2: :data_type ....)
  • For Example
t.eagling(last_view_at: :datetime)
t.eagling(last_view_at: :datetime, deleted_at: :datetime)

About

Behave like t.timestamp: Add extra attributes in all migration with just calling t.ealing(column_name: :column_type)

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published