Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
paranoia
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ikcrm_common
paranoia
Commits
e5476973
Commit
e5476973
authored
Feb 17, 2014
by
Ryan Bigg
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #112 from rvanlieshout/rails4
Add index to deleted_at column in README
parents
a5762de0
ae4b4fb4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
README.md
+2
-1
No files found.
README.md
View file @
e5476973
...
...
@@ -41,7 +41,7 @@ Updating is as simple as `bundle update paranoia`.
Run:
```
shell
rails generate migration AddDeletedAtToClients deleted_at:datetime
rails generate migration AddDeletedAtToClients deleted_at:datetime
:index
```
and now you have a migration
...
...
@@ -50,6 +50,7 @@ and now you have a migration
class
AddDeletedAtToClients
<
ActiveRecord
::
Migration
def
change
add_column
:clients
,
:deleted_at
,
:datetime
add_index
:clients
,
:deleted_at
end
end
```
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment