forked from railsbridge/bridge_troll
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding the Annotate gem to add schema information to the top of each …
…model - rake task - comments added to models, will need to be updated with each schema change added annotate gem and rake task left out annotate.rake from last check in
- Loading branch information
1 parent
e61a911
commit 7dff557
Showing
7 changed files
with
95 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,6 +39,7 @@ group :test do | |
end | ||
|
||
group :test, :development do | ||
gem 'annotate', '~> 2.4.1.beta' | ||
gem 'rspec-rails' | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,15 @@ | ||
# == Schema Information | ||
# Schema version: 20120410060636 | ||
# | ||
# Table name: locations | ||
# | ||
# id :integer not null, primary key | ||
# name :string(255) | ||
# address :text | ||
# created_at :datetime | ||
# updated_at :datetime | ||
# | ||
|
||
class Location < ActiveRecord::Base | ||
has_many :events | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
namespace :annotate do | ||
desc "Generate model annotation" | ||
task :generate do | ||
`annotate --position before --show-migration --show-indexes --exclude tests --exclude fixtures` | ||
end | ||
end |